fix: errors no mac and linux uploading folders with a space in the name
Massimo Melina committed
Aug 27, 2023 at 19:23 UTC
5ca0e33653532e0766e7add5de187994f112266a
1 file changed
+1
-1
src/util-os.ts
+1
-1
@@ -13,7 +13,7 @@ export function getFreeDiskSync(path: string) {
13
throw Error('miss')
14
return Number(/FreeSpace=(\d+)/.exec(one)?.[1])
15
}
16
- const out = try_(() => execSync(`df -k ${path}`).toString(),
16
+ const out = try_(() => execSync(`df -k "${path}"`).toString(),
17
err => {
18
throw err.status === 1 ? Error('miss')
19
: err.status === 127 ? Error('unsupported')