From 1fabdd3f89fdec27b15ac3044960bdcd27f775b6 Mon Sep 17 00:00:00 2001 From: likun7981 Date: Tue, 23 Nov 2021 22:30:02 +0800 Subject: [PATCH] fix: qnap find -inum bug --- src/utils/index.ts | 1 + 1 file changed, 1 insertion(+) diff --git a/src/utils/index.ts b/src/utils/index.ts index be6d51a..d3e7323 100644 --- a/src/utils/index.ts +++ b/src/utils/index.ts @@ -45,6 +45,7 @@ export function getLinkPath( const out = execa.sync('ls', ['-i', file]).stdout const fileNumber = out.split(' ')[0] let findOut: boolean | string = false + destPath = path.join(destPath, '/'); findOut = execa.sync('find', [destPath, '-inum', fileNumber]).stdout return findOut ? findOut.split('\n').map(p => (deleteDir ? path.dirname(p) : p))