当我在本地目录上有一个打开的文件时,我遇到了 ftp.SyncLocalDir 的问题。
我正在使用来自http://www.example-code.com/vbnet/ftp_syncLocalTree.asp的示例,并进行了一些小的更改。它已经工作了几天,然后停止工作。我发现其中一个文件在本地目录中打开。浏览http://chilkatforum.com/论坛,我看到其中一个答案指出“Chilkat 将检测可能是权限/访问错误的错误,并将继续下载剩余部分。”</p>
这不会发生在我身上。查看最后一个错误文本,它指出该文件被另一个进程使用。没有其他文件得到同步。我需要添加到代码中以强制它在错误后继续吗?
下面是最后一个错误文本。
谢谢,史蒂夫
ChilkatLog:
SyncLocalDir:
DllDate: Dec 5 2014
ChilkatVersion: 9.5.0.46
UnlockPrefix: *********
Username: *********
Architecture: Little Endian; 32-bit
Language: .NET 4.0
VerboseLogging: 0
commandCharset: ansi
dirListingCharset: ansi
localDirPath: Q:\TEST
mode: 2
ProgressMonitoring:
enabled: yes
heartbeatMs: 0
sendBufferSize: 65536
--ProgressMonitoring
downloadDir:
getFile2:
localFilename: Q:\TEST/LINE_6 _13.csv
Replacing existing local file
openForReadWriteWin32:
Failed to open file (2)
localFilePath: Q:\TEST\LINE_6 _13.csv
currentWorkingDirectory: H:\Code In Progress\LLS\Gen 3 Test And Crimp
w-network\VB Code\trunk\FTP Syncronize\bin\Debug
osErrorInfo: The process cannot access the file because it is being us
ed by another process.
localWindowsFilePath: Q:\TEST\Line 6\LINE_6 _13.csv
--openForReadWriteWin32
--getFile2
Failed to download file
failedFilename: /LINE_6 _13.csv
--downloadDir
Failed.
--SyncLocalDir
--ChilkatLog