ignore .html files when scanning for archives

This commit is contained in:
Brett Walker committed 2017-03-11 12:09:53 +01:00
1 parent c623480f72
commit ac8c37096e
1 file changed
+1 -1
+1 -1
View File
@@ -50,7 +50,7 @@ func unarchiveUpdates(archivesSourceDir: URL) throws -> [ArchiveItem] {
let dir = try fileManager.contentsOfDirectory(atPath: archivesSourceDir.path);
var running = 0;
for item in dir.filter({ !$0.hasPrefix(".") && !$0.hasSuffix(".delta") && !$0.hasSuffix(".xml") }) {
for item in dir.filter({ !$0.hasPrefix(".") && !$0.hasSuffix(".delta") && !$0.hasSuffix(".xml") && !$0.hasSuffix(".html") }) {
let itemPath = archivesSourceDir.appendingPathComponent(item);
let archiveDestDir = archivesDestDir.appendingPathComponent(itemPath.lastPathComponent);