public class FileStatus
extends java.lang.Object
| Modifier and Type | Method and Description |
|---|---|
long |
getModificationTime()
Get the modification time of the file in epoch millis.
|
java.lang.String |
getPath()
Get the path to the file.
|
long |
getSize()
Get the size of the file in bytes.
|
static FileStatus |
of(java.lang.String path,
long size,
long modificationTime)
Create a
FileStatus with the given path, size and modification time. |
public java.lang.String getPath()
public long getSize()
public long getModificationTime()
public static FileStatus of(java.lang.String path, long size, long modificationTime)
FileStatus with the given path, size and modification time.path - Fully qualified file path.size - File size in bytesmodificationTime - Modification time of the file in epoch millis