mirror of
https://github.com/Ranchero-Software/NetNewsWire
synced 2025-08-12 06:26:36 +00:00
changes to checking for the prefix
This commit is contained in:
committed by
Brent Simmons
parent
23af34b616
commit
ccd0bfb017
@@ -75,7 +75,7 @@ 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") {
|
||||
if file.hasPrefix("__MACOSX/") {
|
||||
logger.debug("Ignoring theme file in __MACOSX folder.")
|
||||
continue
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user