Changed iCloud folder recognition
This commit is contained in:
@@ -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() {
|
||||
|
||||
Reference in New Issue
Block a user