igir icon indicating copy to clipboard operation
igir copied to clipboard

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

Open tgerland opened this issue 5 months ago • 2 comments

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

tgerland avatar Aug 04 '25 03:08 tgerland

Very strange, can you list the contents of your C:\Users\tgerl\AppData\Local\Temp\caxa\applications\igir\pwajhljdgh\0\node_modules\trash directory?

emmercm avatar Aug 13 '25 03:08 emmercm

sure... output with ls -r:

Verzeichnis: C:\Users\tgerl\AppData\Local\Temp\caxa\applications\igir\pwajhljdgh\0\node_modules\trash

Mode LastWriteTime Length Name


d----- 03.08.2025 22:34 lib
d----- 03.08.2025 19:19 node_modules

Verzeichnis: C:\Users\tgerl\AppData\Local\Temp\caxa\applications\igir\pwajhljdgh\0\node_modules\trash\node_modules

Mode LastWriteTime Length Name


d----- 13.08.2025 03:08 dir-glob
d----- 13.08.2025 03:08 globby
d----- 13.08.2025 03:08 ignore
d----- 13.08.2025 03:08 path-type
d----- 13.08.2025 03:08 pify
d----- 13.08.2025 03:08 slash

tgerland avatar Aug 13 '25 05:08 tgerland