Array
public extension Array where Element == Path
Convenience functions for the arrays of Path
-
Filters the list of entries to be a list of Paths that are directories. Symlinks to directories are not returned.
Declaration
Swift
var directories: [Path] { get }
-
Filters the list of entries to be a list of Paths that exist and are not directories. Thus expect symlinks, etc.
Note
symlinks that point to files that do not exist are not returned.Declaration
Swift
var files: [Path] { get }