There are no usernames on iOS etc.
This commit is contained in:
@@ -78,11 +78,7 @@ public struct Path: Equatable, Hashable, Comparable {
|
||||
tilded = dir
|
||||
}
|
||||
#else
|
||||
if username != NSUserName() {
|
||||
return nil
|
||||
} else {
|
||||
tilded = NSHomeDirectory()
|
||||
}
|
||||
return nil // there are no usernames on iOS, etc.
|
||||
#endif
|
||||
}
|
||||
pathComponents.remove(at: 0)
|
||||
|
||||
Reference in New Issue
Block a user