public class SftpFile extends Object
Constructor and Description |
---|
SftpFile(String path)
Creates a new SftpFile object.
|
SftpFile(String path,
SftpFileAttributes attrs)
Creates a new SftpFile object.
|
Modifier and Type | Method and Description |
---|---|
String |
getAbsolutePath()
Get the absolute path
|
SftpFileAttributes |
getAttributes()
Get the files attributes.
|
String |
getFilename()
Get the filename.
|
int |
hashCode() |
public SftpFile(String path, SftpFileAttributes attrs)
IMPORTANT: Each SftpFile object should be initialized with the relative
path of the file when used in
FileSystem.readDirectory(byte[])
.
For all other uses an absolute path is required.
path
- attrs
- public SftpFile(String path)
IMPORTANT: Each SftpFile object should be initialized with the relative
path of the file when used in
FileSystem.readDirectory(byte[])
.
For all other uses an absolute path is required.
path
- public String getFilename()
public SftpFileAttributes getAttributes()
public String getAbsolutePath()
Copyright © 2024. All rights reserved.