1 Star 0 Fork 0

青侠oO/FluentFTP

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
文件
.github
FluentFTP.CSharpExamples
FluentFTP.Tests
FluentFTP.VBExamples
Connect.vb
ConnectFTPS.vb
ConnectFTPSCertificate.vb
CreateDirectory.vb
Debug.vb
DeleteDirectory.vb
DeleteFile.vb
DereferenceLink.vb
DirectoryExists.vb
DownloadDirectory.vb
DownloadDirectoryWithRules.vb
DownloadFile.vb
DownloadFileWithProgress.vb
DownloadManyFiles.vb
ExecuteFTPCommand.vb
FileExists.vb
GetChecksum.vb
GetFileSize.vb
GetHash.vb
GetHashAlgorithm.vb
GetListing.vb
GetListingWithLinks.vb
GetModifiedTime.vb
GetNameListing.vb
GetWorkingDirectory.vb
OpenAppend.vb
OpenRead.vb
OpenWrite.vb
Rename.vb
SetHashAlgorithm.vb
SetWorkingDirectory.vb
UploadDirectory.vb
UploadDirectoryWithRules.vb
UploadFile.vb
UploadFileWithProgress.vb
UploadManyFiles.vb
VBExamples.vbproj
FluentFTP
Powershell
.editorconfig
.gitignore
FUNDING.yml
FluentFTP.sln
ISSUE_TEMPLATE.md
LICENSE.TXT
NOTES.md
README.md
RELEASES.md
appveyor.yml
克隆/下载
Rename.vb 962 Bytes
一键复制 编辑 原始数据 按行查看 历史
Imports System
Imports System.Net
Imports System.Threading
Imports System.Threading.Tasks
Imports FluentFTP
Namespace Examples
Friend Module RenameExample
Sub Rename()
Using conn = New FtpClient("127.0.0.1", "ftptest", "ftptest")
conn.Connect()
' renaming a directory Is dependent on the server! if you attempt it
' And it fails it's not because FluentFTP has a bug!
conn.Rename("/full/or/relative/path/to/src", "/full/or/relative/path/to/dest")
End Using
End Sub
Async Function RenameAsync() As Task
Dim token = New CancellationToken()
Using conn = New FtpClient("127.0.0.1", "ftptest", "ftptest")
Await conn.ConnectAsync(token)
' renaming a directory Is dependent on the server! if you attempt it
' And it fails it's not because FluentFTP has a bug!
Await conn.RenameAsync("/full/or/relative/path/to/src", "/full/or/relative/path/to/dest", token)
End Using
End Function
End Module
End Namespace
Loading...
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
C#
1
https://gitee.com/MuNet/FluentFTP.git
git@gitee.com:MuNet/FluentFTP.git
MuNet
FluentFTP
FluentFTP
master

搜索帮助