Package org.exoplatform.documents.util
Class MacOsMetadataUtils
java.lang.Object
org.exoplatform.documents.util.MacOsMetadataUtils
The macOS metadata names that the Documents import does not create.
-
Method Summary
Modifier and TypeMethodDescriptionstatic booleanisMacOsMetadata(String path) Tells whether a path is macOS metadata rather than user content: a path with a__MACOSXsegment (that folder itself or anything under it), or a path whose last segment is an AppleDouble name (a name starting with._, a bare._included) or the Finder's.DS_Store, whether that segment names a file or a folder.
-
Method Details
-
isMacOsMetadata
Tells whether a path is macOS metadata rather than user content: a path with a__MACOSXsegment (that folder itself or anything under it), or a path whose last segment is an AppleDouble name (a name starting with._, a bare._included) or the Finder's.DS_Store, whether that segment names a file or a folder. Other dot-files are user content.- Parameters:
path- a non-blank path, with '/' or '\' separators, or a single name- Returns:
- true when the path is macOS metadata and must not be imported
-