Skip to content

Commit

Permalink
Hide .DS_Store in file browser
Browse files Browse the repository at this point in the history
  • Loading branch information
1024jp committed Aug 26, 2024
1 parent 13c7cab commit 7100e63
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions CotEditor/Sources/FileNode.swift
Original file line number Diff line number Diff line change
Expand Up @@ -96,6 +96,7 @@ final class FileNode {

return try FileManager.default
.contentsOfDirectory(at: self.fileURL, includingPropertiesForKeys: [.isDirectoryKey, .isWritableKey])
.filter { $0.lastPathComponent != ".DS_Store" }
.map { try FileNode(at: $0, parent: self) }
.sorted(using: SortDescriptor(\.name, comparator: .localizedStandard))
.sorted(using: SortDescriptor(\.isDirectory))
Expand Down

0 comments on commit 7100e63

Please sign in to comment.