🎨 init

This commit is contained in:
Vanessa 2023-06-24 11:05:33 +08:00
parent 713bbf9a43
commit 616fef6650
2 changed files with 6 additions and 1 deletions

View file

@ -411,8 +411,9 @@
const path = require('path')
const iCloudRoot = path.join(decodeURIComponent(getSearch('home')), 'Library', 'Mobile Documents')
const allFiles = walk(iCloudRoot)
const absPathLower = absPath.toLowerCase()
for (const file of allFiles) {
if (-1 < absPath.indexOf(file.toLowerCase())) {
if (-1 < absPathLower.indexOf(file.toLowerCase())) {
return true
}
}