mirror of
https://github.com/siyuan-note/siyuan.git
synced 2026-02-19 05:28:07 +01:00
🎨 init
This commit is contained in:
parent
713bbf9a43
commit
616fef6650
2 changed files with 6 additions and 1 deletions
|
|
@ -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
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue