Skip to content

Commit 979e357

Browse files
authored
Clarify ls function behavior in documentation
Updated documentation to clarify behavior of ls function.
1 parent dbdc3ae commit 979e357

1 file changed

Lines changed: 1 addition & 0 deletions

File tree

Sources/Path+ls.swift

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -169,6 +169,7 @@ public extension Pathish {
169169
- Note: as per `ls`, by default we do *not* return hidden files. Specify `.a` for hidden files.
170170
- Parameter options: Configure the listing.
171171
- Important: On Linux the listing is always `ls -a`
172+
- WARNING: we actually sort the output :( sorry. Will fix in a major version bump.
172173
*/
173174
func ls(_ options: ListDirectoryOptions? = nil) -> [Path] {
174175
guard let urls = try? FileManager.default.contentsOfDirectory(at: url, includingPropertiesForKeys: nil) else {

0 commit comments

Comments
 (0)