Class MacOsMetadataUtils

java.lang.Object
org.exoplatform.documents.util.MacOsMetadataUtils

public final class MacOsMetadataUtils extends Object
The macOS metadata names that the Documents import does not create.
  • Method Summary

    Modifier and Type
    Method
    Description
    static boolean
    Tells whether a path is macOS metadata rather than user content: a path with a __MACOSX segment (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.

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Method Details

    • isMacOsMetadata

      public static boolean isMacOsMetadata(String path)
      Tells whether a path is macOS metadata rather than user content: a path with a __MACOSX segment (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