liyongli 2 년 전
부모
커밋
b061a657ba
1개의 변경된 파일1개의 추가작업 그리고 1개의 파일을 삭제
  1. 1 1
      saveOSSAGitte.js

+ 1 - 1
saveOSSAGitte.js

@@ -49,7 +49,7 @@ const { execSync } = require("child_process");
         await sftp.rmdir(config.path.romotePath + '/css', true);
         await sftp.rmdir(config.path.romotePath + '/fonts', true);
         await sftp.rmdir(config.path.romotePath + '/js', true);
-        await sftp.rmdir(config.path.romotePath + '/index.html', true);
+        await sftp.delete(config.path.romotePath + '/index.html', true);
         console.log("已清空原有文件");
         // await sftp.uploadDir(config.path.localPath, config.path.romotePath);
         // console.log("上传完成");