perf: 任务支持拖动排序

This commit is contained in:
xiaojunnuo
2024-09-05 01:39:46 +08:00
parent 71ac8aae4a
commit 1e9b5638aa
5 changed files with 139 additions and 75 deletions
@@ -195,8 +195,8 @@ export class SshClient {
this.logger.info('请注意:windows下,文件目录分隔应该写成\\而不是/');
this.logger.info('--------------------------');
}
const spec = await conn.exec('echo %COMSPEC%');
if (spec.toString().trim() === '%COMSPEC%') {
const isCmd = await this.isCmd(conn);
if (!isCmd) {
mkdirCmd = `New-Item -ItemType Directory -Path "${filePath}" -Force`;
} else {
mkdirCmd = `if not exist "${filePath}" mkdir "${filePath}"`;