Comparing version 0.3.1-beta.0 to 0.3.1
@@ -70,7 +70,5 @@ "use strict"; | ||
var out = execa_1.default.sync('ls', ['-i', file]).stdout; | ||
console.log('编号输出', out); | ||
var fileNumber = out.split(' ')[0]; | ||
var findOut = false; | ||
findOut = execa_1.default.sync('find', [destPath, '-inum', fileNumber]).stdout; | ||
console.log('findOut输出', findOut); | ||
return findOut | ||
@@ -83,8 +81,2 @@ ? findOut.split('\n').map(function (p) { return (deleteDir ? path_1.default.dirname(p) : p); }) | ||
var paths = getLinkPath(file, destPath); | ||
if (paths.length >= 1) { | ||
console.log('硬链接已存在', file, destPath); | ||
} | ||
else { | ||
console.log('硬链接不存在', file, destPath); | ||
} | ||
return paths.length >= 1; | ||
@@ -91,0 +83,0 @@ } |
@@ -73,3 +73,6 @@ "use strict"; | ||
index_1.warning(Number.isNaN(level), '查找的最大层级maxFindLevel必须设置为数字', '当前配置为', level); | ||
index_1.warning(level > 6 || level < 1, '保存的最大层级maxFindLevel不能小于1大于6', '当前配置为', level); | ||
if (level > 6) { | ||
index_1.log.warn('最大层级maxFindLevel大于6 可能会有性能问题! 请根据情况自行处理'); | ||
} | ||
index_1.warning(level < 1, '保存的最大层级maxFindLevel不能小于1', '当前配置为', level); | ||
} | ||
@@ -76,0 +79,0 @@ function checkDirectory(source, dest) { |
{ | ||
"name": "hlink", | ||
"version": "0.3.1-beta.0", | ||
"version": "0.3.1", | ||
"description": "hlink", | ||
@@ -5,0 +5,0 @@ "license": "MIT", |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
51724
891