修复外网环境上传失败问题

This commit is contained in:
zzh 2022-03-24 21:18:22 +08:00
commit 65e36735ae
2 changed files with 8 additions and 3 deletions

View File

@ -1,4 +1,4 @@
<h1>FTP数据备份工具</h1>
# FTP数据备份工具
使用步骤:
1、TsFTP目录放入解释器所在目录的funcext中
@ -6,4 +6,4 @@
3、参考examples\example1.tsl编写备份脚本
4、可选添加备份脚本的定时调度。
确保plugin\FileMgr.dll为20220110以后的版本,否则需更新或临时替换。
确保plugin\FileMgr.dll为20220110以后的版本,否则需更新或临时替换。

View File

@ -48,6 +48,11 @@ Type TsFTPBackup = Class
Begin
path := ExtractFilePath(src);
files := filelist('',src);
if not files then begin
msg := 'filelist('+src+')为空。';
log(msg,'note');
return 2;
end;
try
ftpObj.MakeDir(destPath);
except