pkolaczk / fclones

Efficient Duplicate File Finder
MIT License
1.99k stars 79 forks source link

Pattern matching doesn't work at all on Windows #270

Open UserC2 opened 4 months ago

UserC2 commented 4 months ago

Using any command requiring a pattern doesn't function on Windows.

fclones executes correctly, but finds 0 applicable duplicates with the following command in PowerShell:

fclones group . | fclones move --path '.\' --dry-run 'Duplicates' > moves.txt

(It also doesn't work with any combination of './', .\, ./, ./*, or .\* as an argument to --path.)

pkolaczk commented 3 months ago

Fclones has no control over how the shell preprocesses the arguments. Quoting rules differ between shells so you have to adapt your args so that fclones receives proper argument values.

Does it work in cmd?