mirror of
https://github.com/Ranchero-Software/NetNewsWire
synced 2026-12-01 09:50:16 +00:00
Ignores files in __MACOSX folder
This commit is contained in:
1 parent
4289518e36
commit
23af34b616
1 file changed
+4
@@ -75,6 +75,10 @@ public class ArticleThemeDownloader {
|
||||
private func findThemeFile(in searchPath: String) -> String? {
|
||||
if let directoryContents = FileManager.default.enumerator(atPath: searchPath) {
|
||||
while let file = directoryContents.nextObject() as? String {
|
||||
if file.localizedCaseInsensitiveContains("__MACOSX") {
|
||||
logger.debug("Ignoring theme file in __MACOSX folder.")
|
||||
continue
|
||||
}
|
||||
if file.hasSuffix(".nnwtheme") {
|
||||
return file
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user