@lazycatcloud/lzc-cli 1.2.55 → 1.2.56
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/changelog.md +4 -0
- package/lib/utils.js +3 -5
- package/package.json +1 -1
package/changelog.md
CHANGED
package/lib/utils.js
CHANGED
|
@@ -282,12 +282,10 @@ export function isDirExist(path) {
|
|
|
282
282
|
|
|
283
283
|
export function isFileExist(path) {
|
|
284
284
|
try {
|
|
285
|
-
fs.accessSync(
|
|
286
|
-
path,
|
|
287
|
-
fs.constants.W_OK | fs.constants.R_OK | fs.constants.F_OK
|
|
288
|
-
)
|
|
285
|
+
fs.accessSync(path, fs.constants.R_OK | fs.constants.F_OK)
|
|
289
286
|
return true
|
|
290
|
-
} catch {
|
|
287
|
+
} catch (err) {
|
|
288
|
+
logger.debug(`access ${path} error: ${err}`)
|
|
291
289
|
return false
|
|
292
290
|
}
|
|
293
291
|
}
|