Copying files multiple times results in bogus names

From Sugar Labs
Jump to navigation Jump to search

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.

Screenshot-1.png

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

Screenshot-4.png



Contact

Shanjit Singh Jajmann

shanjit<at>seeta<dot>in