Skip to content

Commit

Permalink
Include hidden files by default
Browse files Browse the repository at this point in the history
  • Loading branch information
swiftyfinch committed Sep 7, 2024
1 parent ad15847 commit d862f55
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Sources/Implementation/Manager/FilesManager.swift
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ extension FilesManager {
func enumerator(for path: String,
deep: Bool,
keys: [URLResourceKey]? = nil) throws -> FileManager.DirectoryEnumerator {
var options: FileManager.DirectoryEnumerationOptions = [.skipsHiddenFiles]
var options: FileManager.DirectoryEnumerationOptions = []
if !deep { options.formUnion([.skipsSubdirectoryDescendants, .skipsPackageDescendants]) }
var keys = keys ?? []
if !keys.contains(.isRegularFileKey) { keys.append(.isRegularFileKey) }
Expand Down

0 comments on commit d862f55

Please sign in to comment.