Class SftpFileRef
java.lang.Object
org.frankframework.filesystem.sftp.SftpFileRef
Wrapper around a FTPFile to allow for relative path operations
- Author:
- Niels Meijer
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic SftpFileRef
fromLsEntry
(com.jcraft.jsch.ChannelSftp.LsEntry entry) Creates a deep-copy of LsEntrystatic SftpFileRef
fromLsEntry
(com.jcraft.jsch.ChannelSftp.LsEntry entry, String folder) Creates a deep-copy of LsEntry, relative to the provided foldercom.jcraft.jsch.SftpATTRS
getAttrs()
Returns the filename, not the full (relative) pathgetName()
Returns the canonical name inclusive file path when presentlong
getSize()
void
setAttrs
(com.jcraft.jsch.SftpATTRS attributes) toString()
-
Constructor Details
-
SftpFileRef
-
SftpFileRef
- Parameters:
name
- A canonical name might be provided, strip the path when present and only use the actual file name.folder
- The directory the file. This always has precedence over the canonical path provided by the name.
-
-
Method Details
-
getFilename
Returns the filename, not the full (relative) path -
getName
Returns the canonical name inclusive file path when present -
toString
-
fromLsEntry
Creates a deep-copy of LsEntry -
fromLsEntry
Creates a deep-copy of LsEntry, relative to the provided folder -
getSize
public long getSize() -
getAttrs
public com.jcraft.jsch.SftpATTRS getAttrs() -
setAttrs
public void setAttrs(com.jcraft.jsch.SftpATTRS attributes)
-