public class FileListEntry extends FileInfo
| Constructor and Description |
|---|
FileListEntry(Map<String,String> map) |
| Modifier and Type | Method and Description |
|---|---|
long |
getFileSize()
Gets the size of the file in bytes.
|
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.
|
long |
getUploadedBytes()
If this file is still uploading, this method will return how many bytes have already
been uploaded.
|
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. |
boolean |
isStillUploading()
Returns
true if this file was actively being uploaded at the time
this object was created. |
getChannelId, getLastModifiedDatepublic FileListEntry(Map<String,String> map)
public String getPath()
FileInfopublic String getName()
FileInfopublic String getParentPath()
FileInfogetParentPath in class FileInfoFileInfo.getPath()public long getFileSize()
FileInfogetFileSize in class FileInfopublic int getType()
FileInfo0 stands for a directory, 1 for a file.
Consider using FileInfo.isFile() and FileInfo.isDirectory() instead.
public boolean isFile()
FileInfotrue if this entry is a file and not a directory.public boolean isDirectory()
FileInfotrue if this entry is a directory and not a file.isDirectory in class FileInfopublic boolean isStillUploading()
true if this file was actively being uploaded at the time
this object was created. Note that this will return false if a
client has paused an upload.public long getUploadedBytes()
Released under the MIT license.