Copying files multiple times results in bogus names

Description

Bug Issue #2060

Copying files multiple times to a volume, results in Bogus names like foo_1, foo_1_2, foo_1_2_3 and so on.

 

This needs to be avoided, and instead copying multiple files with the same name should result in copies like foo(2), foo(3), foo(4) and so on.


Proposed Fix

Body of for loop (in src/jarabe/journal/model.py) implementing the "_" addition each time a new file is copied has been modified, and subsequently newer code added to implement foo(2), foo(3) and so on.

Result of Fix

 



Contact

Shanjit Singh Jajmann

shanjit<at>seeta<dot>in