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