Package ghidra.formats.gfilesystem
Interface GFile
-
- All Known Implementing Classes:
GFileImpl
,GFileLocal
public interface GFile
Represents a file in afilesystem
.Only valid while the
owning filesystem
object is still open and notclosed
.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Default Methods Modifier and Type Method Description GFileSystem
getFilesystem()
TheGFileSystem
that owns this file.FSRL
getFSRL()
TheFSRL
of this file.default long
getLastModified()
long
getLength()
Returns the length of this file, or -1 if not known.default java.util.List<GFile>
getListing()
Returns a listing of files in this sub-directory.java.lang.String
getName()
The name of this file.GFile
getParentFile()
The parent directory of this file.java.lang.String
getPath()
The path and filename of this file, relative to its owning filesystem.boolean
isDirectory()
Returns true if this is a directory.
-
-
-
Method Detail
-
getFilesystem
GFileSystem getFilesystem()
TheGFileSystem
that owns this file.- Returns:
GFileSystem
that owns 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()
-
-