I hate JavaScript sometimes

This commit is contained in:
oldmud0 2019-04-03 23:18:28 -05:00
parent 9b4c18e8dc
commit eae8ed1552

View File

@ -99,11 +99,11 @@ const specialActions = changesFile ?
// Create actions based on directories to be deleted.
// Always have deeper directories first, to guarantee that deleting
// higher-level directories will succeed.
+ Array.from(dirsDeleted.values())
.concat(Array.from(dirsDeleted.values())
.sort((a, b) => b.split("/").length - a.split("/").length)
.map(dir => {
return { action: "deleteDir", target: dir };
})
}))
: [];
const urlBase = "https://s3.wasabisys.com/ao-downloads/";