Interface GFile

    • Method Detail

      • getFSRL

        FSRL getFSRL()
        The FSRL of this file.
        Returns:
        FSRL of this file.
      • getParentFile

        GFile getParentFile()
        The parent directory of this file.
        Returns:
        parent GFile directory of this file.
      • getPath

        java.lang.String getPath()
        The path and filename of this file, relative to its owning filesystem.
        Returns:
        path and filename of this file, relative to its owning filesystem.
      • getName

        java.lang.String getName()
        The name of this file.
        Returns:
        name of this file.
      • isDirectory

        boolean isDirectory()
        Returns true if this is a directory.

        Returns:
        boolean true if this file is a directory, false otherwise.
      • getLength

        long getLength()
        Returns the length of this file, or -1 if not known.
        Returns:
        number of bytes in this file.
      • getLastModified

        default long getLastModified()
      • getListing

        default java.util.List<GFile> getListing()
                                          throws java.io.IOException
        Returns a listing of files in this sub-directory.

        Returns:
        List of GFile instances.
        Throws:
        java.io.IOException - if not a directory or error when accessing files.