Package | Description |
---|---|
cn.orionsec.kit.net.host.sftp |
Modifier and Type | Class and Description |
---|---|
class |
SftpFileWrapper
sftp 文件包装
|
Modifier and Type | Method and Description |
---|---|
SftpFile |
SftpExecutor.getFile(String path) |
SftpFile |
ISftpExecutor.getFile(String path)
获取文件属性
文件不存在返回 null
|
SftpFile |
SftpExecutor.getFile(String path,
boolean followSymbolic) |
SftpFile |
ISftpExecutor.getFile(String path,
boolean followSymbolic)
获取文件属性
文件不存在返回 null
|
Modifier and Type | Method and Description |
---|---|
List<SftpFile> |
SftpExecutor.list(String path) |
List<SftpFile> |
ISftpExecutor.list(String path)
获取目录文件属性
文件夹不存在则返回空
|
default List<SftpFile> |
ISftpExecutor.listDirs(String path)
文件夹列表
文件夹不存在则返回空集合
|
List<SftpFile> |
ISftpExecutor.listDirs(String path,
boolean child)
文件夹列表
文件夹不存在则返回空集合
|
List<SftpFile> |
BaseSftpExecutor.listDirs(String path,
boolean child) |
default List<SftpFile> |
ISftpExecutor.listFiles(String path)
文件列表
文件夹不存在则返回空
|
default List<SftpFile> |
ISftpExecutor.listFiles(String path,
boolean child)
文件列表
文件夹不存在则返回空
|
List<SftpFile> |
ISftpExecutor.listFiles(String path,
boolean child,
boolean dir)
文件列表
文件夹不存在则返回空集合
|
List<SftpFile> |
BaseSftpExecutor.listFiles(String path,
boolean child,
boolean dir) |
default List<SftpFile> |
ISftpExecutor.listFilesFilter(String path,
SftpFileFilter filter)
查询文件列表
文件夹不存在则返回空集合
|
default List<SftpFile> |
ISftpExecutor.listFilesFilter(String path,
SftpFileFilter filter,
boolean child)
查询文件列表
文件夹不存在则返回空集合
|
List<SftpFile> |
ISftpExecutor.listFilesFilter(String path,
SftpFileFilter filter,
boolean child,
boolean dir)
查询文件列表
文件夹不存在则返回空集合
|
List<SftpFile> |
BaseSftpExecutor.listFilesFilter(String path,
SftpFileFilter filter,
boolean child,
boolean dir) |
Modifier and Type | Method and Description |
---|---|
void |
SftpExecutor.setFileAttribute(SftpFile attribute) |
void |
ISftpExecutor.setFileAttribute(SftpFile attribute)
设置文件属性
文件不存在则会报错
|
Copyright © 2024. All rights reserved.