public class SftpFile
extends java.lang.Object
| Constructor and Description |
|---|
SftpFile(java.lang.String path,
SftpFileAttributes attrs)
Creates a new SftpFile object.
|
| Modifier and Type | Method and Description |
|---|---|
java.lang.String |
getAbsolutePath()
Get the absolute path
|
SftpFileAttributes |
getAttributes()
Get the files attributes.
|
java.lang.String |
getFilename()
Get the filename.
|
int |
hashCode() |
public SftpFile(java.lang.String path,
SftpFileAttributes attrs)
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.
path - attrs - public int hashCode()
hashCode in class java.lang.Objectpublic java.lang.String getFilename()
public SftpFileAttributes getAttributes()
public java.lang.String getAbsolutePath()
Copyright © 2022. All rights reserved.