Skip to content

under windows, --clean-backup seems to be broken #1799

@tgerland

Description

@tgerland

Paste the command

igir move zip test clean report ^
--dat "dats\No-Intro*.zip" ^
--dat-name-regex-exclude "/gamecube|wallpapers|dreamcast|kiosk|playstation|xbox|encrypted|source code/i" ^
--input "toSort\nes" ^
--input "roms\nes" ^
--output "roms{batocera}" ^
--dir-game-subdir never ^
--overwrite-invalid ^
--zip-format rvzstd ^
--zip-exclude ".{chd,iso,rvz,cso,nsp,xci,zso,gcz,wia,nkit}" ^
--merge-roms nonmerged ^
--cache-path "c:\users\tgerl\desktop\igir\igir.cache"
--clean-exclude "
.{m3u,m3u8,scummvm,iso,chd,rvz,cso,nsp,xci,zso,gcz,wia,nkit},gamelist.xml" ^
--clean-backup "c:\users\tgerl\desktop\igir\toRemove" ^
-v

Describe the bug

no files moved to clean-backup. the output directory is cleaned up, but the files seems lost...

DATs used are NO-INTRO daily P/C main only.

Expected behavior

files moved to clean-backup and the output directory is cleaned up, no files lost.

Debug logs

WARN: failed to recycle 100 paths: Error [ERR_MODULE_NOT_FOUND]: Cannot find module 'C:\Users\tgerl\AppData\Local\Temp\caxa\applications\igir\pwajhljdgh\0\node_modules\trash\lib\windows.js' imported from C:\Users\tgerl\AppData\Local\Temp\caxa\applications\igir\pwajhljdgh\0\node_modules\trash\index.js

DAT(s) used

https://datomatic.no-intro.org/index.php?page=download&op=daily&s=64

igir version

4.1.2

Node.js version

N/A

Operating system

Win 11 24h2

Additional context

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    potential-bugA potential issue that needs confirmation and/or triage

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions