Don't try to overwrite duplicate NAT images
This commit is contained in:
@@ -78,8 +78,10 @@
|
|||||||
(doFor file files
|
(doFor file files
|
||||||
(let [pathWithoutDir (haxe.io.Path.withoutDirectory file)]
|
(let [pathWithoutDir (haxe.io.Path.withoutDirectory file)]
|
||||||
(unless !(= -1 (e.files.indexOf pathWithoutDir))
|
(unless !(= -1 (e.files.indexOf pathWithoutDir))
|
||||||
|
(let [pathInArchive (joinPath archive.archiveDir "files" pathWithoutDir)]
|
||||||
|
(unless (sys.FileSystem.exists pathInArchive)
|
||||||
((if leaveOriginalCopy sys.io.File.copy sys.FileSystem.rename)
|
((if leaveOriginalCopy sys.io.File.copy sys.FileSystem.rename)
|
||||||
file (joinPath archive.archiveDir "files" pathWithoutDir))
|
file pathInArchive)))
|
||||||
(e.files.push pathWithoutDir))))))
|
(e.files.push pathWithoutDir))))))
|
||||||
|
|
||||||
(function addTags [:nat.Archive archive :nat.Entry e :Array<String> tagsToAdd]
|
(function addTags [:nat.Archive archive :nat.Entry e :Array<String> tagsToAdd]
|
||||||
|
Reference in New Issue
Block a user