public interface FileSystemEntry
Modifier and Type | Method and Description |
---|---|
FileSystemEntry |
cloneWithNewPath(String path)
Return a new FileSystemEntry that is a clone of this object, except having the specified path
|
String |
getGroup() |
Date |
getLastModified()
Return the timestamp Date for the last modification of this file system entry
|
String |
getName()
Return the file name or directory name (no path) for this entry
|
String |
getOwner() |
String |
getPath()
Return the path for this file system entry
|
Permissions |
getPermissions() |
long |
getSize()
Return the size of this file system entry
|
boolean |
isDirectory()
Return true if this entry represents a directory, false otherwise
|
void |
lockPath()
Lock down the path so it cannot be changed
|
void |
setLastModified(Date lastModified)
Set the timestamp Date for the last modification of this file system entry
|
boolean isDirectory()
String getPath()
String getName()
long getSize()
Date getLastModified()
void setLastModified(Date lastModified)
lastModified
- - the lastModified value, as a DateString getOwner()
String getGroup()
Permissions getPermissions()
FileSystemEntry cloneWithNewPath(String path)
path
- - the new path value for the cloned file system entryvoid lockPath()
Copyright © 2016. All rights reserved.