From d862f556d5af0beaff62b78014c9caef6a4f768a Mon Sep 17 00:00:00 2001 From: Vyacheslav Khorkov Date: Sat, 7 Sep 2024 19:20:22 +0500 Subject: [PATCH] Include hidden files by default --- Sources/Implementation/Manager/FilesManager.swift | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Sources/Implementation/Manager/FilesManager.swift b/Sources/Implementation/Manager/FilesManager.swift index 9272182..41945ad 100644 --- a/Sources/Implementation/Manager/FilesManager.swift +++ b/Sources/Implementation/Manager/FilesManager.swift @@ -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) }