jvirkki / dupd

CLI utility to find duplicate files
http://www.virkki.com/dupd
GNU General Public License v3.0
114 stars 16 forks source link

Files with backticks in name are skipped #5

Closed jbruchon closed 8 years ago

jbruchon commented 8 years ago

In my initial testing of dupd I immediately ran into a file with a backtick in the name and that file was skipped as a result. This is because backticks are used for a separator character for the database, but perhaps some sort of workaround can be put in place (character escaping?)

jvirkki commented 8 years ago

Yes. See the USAGE doc on --pathsep for more info on this limitation.

The workaround right now is to use --pathsep to set this to a character that is less common in your file set if possible. Ultimately it is a hack/bug that I should fix.

jvirkki commented 8 years ago

Sometimes the simplest solution works...

I changed the separator to 0x1C (ASCII file separator). I half expected this to cause problems with SQLite but turns out it works fine.