Changed iCloud folder recognition

This commit is contained in:
2021-05-19 08:55:17 +02:00
parent 80491541c2
commit 59fc67b5f0
6 changed files with 16 additions and 5 deletions

View File

@@ -39,7 +39,18 @@ class ICloudManager {
}catch {
return .none
}
}
static public func inICloudContainer(url : URL?) -> Bool {
guard let url = url else { return false }
for component in url.pathComponents {
if relative_seperator.count > 0 && component == relative_seperator[0] {
return true
}
}
return false
}
private init() {