Interface IFile

    • Method Detail

      • getName

        String getName()
        Returns:
        the name of the file relative to the root of the virtual FS. This will return a '/' separated path indepedent of underlying filesystem
      • isDirectory

        boolean isDirectory()
        Returns:
        true iff this IFile is also an IDirectory
      • isFile

        boolean isFile()
        Returns:
        true iff this IFile is not an IDirectory
      • getLastModified

        long getLastModified()
        Returns:
        the last modified date of the file.
      • getSize

        long getSize()
        Returns:
        the size of the file.
      • convert

        IDirectory convert()
        Returns:
        if this is a directory return this as an IDirectory, otherwise return null.
      • convertNested

        IDirectory convertNested()
        Returns:
        if this is a directory or an archive, returns the opened IDirectory
      • getParent

        IDirectory getParent()
        Returns:
        returns the parent directory of this IFile, or null if this is the root.
      • getRoot

        IDirectory getRoot()
        Returns:
        the root of this file system.