Interface FileInfo<F>
- Type Parameters:
- F- The target protocol file type.
- All Known Implementing Classes:
- AbstractFileInfo,- FtpFileInfo,- SftpFileInfo,- SmbFileInfo
public interface FileInfo<F>
Represents a remote file info - an abstraction over the underlying implementation.
- Since:
- 2.1
- Author:
- Gary Russell
- 
Method Details- 
isDirectoryboolean isDirectory()- Returns:
- true if the remote file is a directory
 
- 
isLinkboolean isLink()- Returns:
- true if the remote file is a link
 
- 
getSizelong getSize()- Returns:
- the size of the remote file
 
- 
getModifiedlong getModified()- Returns:
- the modified time of the remote file
 
- 
getFilenameString getFilename()- Returns:
- the name of the remote file
 
- 
getRemoteDirectoryString getRemoteDirectory()- Returns:
- the remote directory in which the file resides
 
- 
getPermissionsString getPermissions()- Returns:
- a string representing the permissions of the remote file (e.g. -rw-r--r--).
 
- 
getFileInfoF getFileInfo()- Returns:
- the actual implementation from the underlying library, more sophisticated access is needed.
 
 
-