Class Listing


  • public class Listing
    extends Object
    The result of a storage list operation
    • Method Detail

      • file

        public static Listing file​(String relativePath)
        Creates a file listing. The path MUST use forward slashes as path separators.
        Parameters:
        relativePath - relative path to the file
        Returns:
        file listing
      • directory

        public static Listing directory​(String relativePath)
        Creates a directory listing. The path MUST use forward slashes as path separators.
        Parameters:
        relativePath - relative path to the directory
        Returns:
        directory listing
      • other

        public static Listing other​(String relativePath)
        Creates a listing for a file that is neither a regular file nor directory, such as a symbolic link. The path MUST use forward slashes as path separators.
        Parameters:
        relativePath - relative path to the file
        Returns:
        file listing
      • getRelativePath

        public String getRelativePath()
        Returns:
        the path to the file/directory relative the list operation path
      • getType

        public Listing.Type getType()
        Returns:
        the type of file
      • isFile

        public boolean isFile()
      • isDirectory

        public boolean isDirectory()
      • isOther

        public boolean isOther()
      • hashCode

        public int hashCode()
        Overrides:
        hashCode in class Object