FtpClientDeleteDirectory 方法 |
删除FTP服务器上的指定目录,并且可以指定是否删除所有子文件
Delete the specified directory on the FTP server, with the option to specify whether to delete all subfiles.
命名空间:
HslCommunication.Enthernet.Ftp
程序集:
HslCommunication (在 HslCommunication.dll 中) 版本:12.5.3.0 (12.5.3.0)
语法public OperateResult DeleteDirectory(
string path,
bool clearFiles = false
)
Public Function DeleteDirectory (
path As String,
Optional clearFiles As Boolean = false
) As OperateResult
public:
OperateResult^ DeleteDirectory(
String^ path,
bool clearFiles = false
)
member DeleteDirectory :
path : string *
?clearFiles : bool
(* Defaults:
let _clearFiles = defaultArg clearFiles false
*)
-> OperateResult
参数
- path
- 类型:SystemString
Ftp服务器上的目录 - clearFiles (Optional)
- 类型:SystemBoolean
是否删除所有的文件
返回值
类型:
OperateResult是否删除成功
参见