Describes one entry returned by FtpSession.listFiles - a single file or subdirectory found in the directory that was listed.


Properties

PropertyReturnsDescription
directorybooleanWhether this entry is a directory rather than a file.
nameStringThe name of this file or directory, without any path.
sizelongThe size of this entry in bytes. Meaningless for a directory, where the remote server typically reports 0.

Methods

getName()

Returns: String

The name of this file or directory, without any path.

getSize()

Returns: long

The size of this entry in bytes. Meaningless for a directory, where the remote server typically reports 0.

isDirectory()

Returns: boolean

Whether this entry is a directory rather than a file.

To get full access to the Kademi Hub existing customers can login here, or new customers can register here.