Class HierarchicalContentFileSystemHelper

    • Constructor Detail

      • HierarchicalContentFileSystemHelper

        public HierarchicalContentFileSystemHelper()
    • Method Detail

      • createDirectoryHierarchy

        @Deprecated
        public File createDirectoryHierarchy​(File parentDir,
                                             long contentId)
        Deprecated.
        Get the directory corresponding to the given content ID, creating the directory hierarchy as required.
      • getDirectory

        public File getDirectory​(File parentDir,
                                 long contentId)
        Get the directory corresponding to the given content ID. The directory may or may not exist already.
      • getDirectory

        public com.atlassian.dc.filestore.api.compat.FilesystemPath getDirectory​(com.atlassian.dc.filestore.api.compat.FilesystemPath parentDir,
                                                                                 long contentId)
        Get the directory corresponding to the given content ID. The directory may or may not exist already.
      • getDirectoryV004

        public com.atlassian.dc.filestore.api.compat.FilesystemPath getDirectoryV004​(com.atlassian.dc.filestore.api.compat.FilesystemPath parentDir,
                                                                                     long id)
        Get the directory corresponding to the given content ID. The directory may or may not exist already. The directory is calculated by splitting the id into up to 3 digits long chunks. E.g. for id 12345678 and parent dir /parent it will produce a path /parent/123/456/78