torrentool
torrentool copied to clipboard
Fix path normalization
Prevent corrupting filename in the case the path is contained in a file name
Ex. from current working dir:
DIR/
DIR/prefix_DIR_suffix.ext
DIR/prefix_DIR_suffix.ext would previously be normalize to prefix__suffix.ext since DIR is found in filename. It should instead be normalized to prefix_DIR_suffix.ext.
Thank you. I'll try to review it in a few days. I'd also want to ask you to add a test covering the issue.
Will wait for a test.