1 parent dbdc3ae commit 979e357Copy full SHA for 979e357
1 file changed
Sources/Path+ls.swift
@@ -169,6 +169,7 @@ public extension Pathish {
169
- Note: as per `ls`, by default we do *not* return hidden files. Specify `.a` for hidden files.
170
- Parameter options: Configure the listing.
171
- Important: On Linux the listing is always `ls -a`
172
+ - WARNING: we actually sort the output :( sorry. Will fix in a major version bump.
173
*/
174
func ls(_ options: ListDirectoryOptions? = nil) -> [Path] {
175
guard let urls = try? FileManager.default.contentsOfDirectory(at: url, includingPropertiesForKeys: nil) else {
0 commit comments