Package com.sshtools.common.sftp
Class SftpFile
java.lang.Object
com.sshtools.common.sftp.SftpFile
Represents an SFTP file object.
- Author:
- Lee David Painter
-
Constructor Summary
ConstructorsConstructorDescriptionSftpFile(String path, SftpFileAttributes attrs) Creates a new SftpFile object. -
Method Summary
Modifier and TypeMethodDescriptionGet the absolute pathGet the files attributes.Get the filename.inthashCode()
-
Constructor Details
-
SftpFile
Creates a new SftpFile object.IMPORTANT: Each SftpFile object should be initialized with the relative path of the file when used in
com.sshtools.common.sftp.FileSystem#readDirectory. For all other uses an absolute path is required.- Parameters:
path-attrs-
-
-
Method Details