mirror of
https://github.com/upscayl/upscayl.git
synced 2024-11-12 01:40:53 +01:00
Delete unnecessary files in batch-upscayl command
This commit is contained in:
parent
c2d64ebf57
commit
12c62f9b54
@ -59,7 +59,11 @@ const batchUpscayl = async (event, payload: BatchUpscaylPayload) => {
|
||||
|
||||
// Delete .DS_Store files
|
||||
fs.readdirSync(inputDir).forEach((file) => {
|
||||
if (file === ".DS_Store") {
|
||||
if (
|
||||
file === ".DS_Store" ||
|
||||
file.toLowerCase() === "desktop.ini" ||
|
||||
file.startsWith(".")
|
||||
) {
|
||||
logit("🗑️ Deleting .DS_Store file");
|
||||
fs.unlinkSync(inputDir + slash + file);
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user