public class FileInfo extends Wrapper
| Modifier and Type | Method and Description |
|---|---|
int |
getChannelId()
Gets the ID of the channel this file is stored on.
|
long |
getFileSize()
Gets the size of the file in bytes.
|
Date |
getLastModifiedDate()
Gets the date of the last modification to this file.
|
String |
getName()
Gets the name of this file or directory.
|
String |
getParentPath()
Gets the path of the directory containing this file or directory.
|
String |
getPath()
Gets the path to this file or directory, including its name.
|
int |
getType()
Gets whether this entry is a directory or a file.
|
boolean |
isDirectory()
Returns
true if this entry is a directory and not a file. |
boolean |
isFile()
Returns
true if this entry is a file and not a directory. |
public int getChannelId()
public String getPath()
public String getName()
public String getParentPath()
getPath()public long getFileSize()
public Date getLastModifiedDate()
public int getType()
0 stands for a directory, 1 for a file.
Consider using isFile() and isDirectory() instead.
public boolean isFile()
true if this entry is a file and not a directory.public boolean isDirectory()
true if this entry is a directory and not a file.Released under the MIT license.