public class SftpFileRef extends Object
Constructor and Description |
---|
SftpFileRef(String name) |
SftpFileRef(String name,
String folder) |
Modifier and Type | Method and Description |
---|---|
static SftpFileRef |
fromLsEntry(com.jcraft.jsch.ChannelSftp.LsEntry entry)
Creates a deep-copy of LsEntry
|
static SftpFileRef |
fromLsEntry(com.jcraft.jsch.ChannelSftp.LsEntry entry,
String folder)
Creates a deep-copy of LsEntry, relative to the provided folder
|
com.jcraft.jsch.SftpATTRS |
getAttrs() |
String |
getFilename()
Returns the filename, not the full (relative) path
|
String |
getName()
Returns the canonical name inclusive file path when present
|
long |
getSize() |
void |
setAttrs(com.jcraft.jsch.SftpATTRS attributes) |
String |
toString() |
public SftpFileRef(String name)
public String getFilename()
public String getName()
public static SftpFileRef fromLsEntry(com.jcraft.jsch.ChannelSftp.LsEntry entry)
public static SftpFileRef fromLsEntry(com.jcraft.jsch.ChannelSftp.LsEntry entry, String folder)
public long getSize()
public com.jcraft.jsch.SftpATTRS getAttrs()
public void setAttrs(com.jcraft.jsch.SftpATTRS attributes)
Copyright © 2023 Frank!Framework. All rights reserved.