Difference between revisions of "Copying files multiple times results in bogus names"

From Sugar Labs
Jump to navigation Jump to search
 
Line 3: Line 3:
  
 
Copying files multiple times to a volume, results in Bogus names like foo_1, foo_1_2, foo_1_2_3 and so on.
 
Copying files multiple times to a volume, results in Bogus names like foo_1, foo_1_2, foo_1_2_3 and so on.
 +
 +
[[File:Screenshot-1.png|400px]]
  
 
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.  
 
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 Solution ==
+
== Proposed Fix ==
Body of for loop implementing the "_" addition(in  each time a new file is copied has been modified, and subsequently newer code added to implement foo(2), foo(3) and so on.
+
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 ==
 +
[[File:Screenshot-4.png|400px]]
 +
 
 +
 
  
  

Latest revision as of 07:34, 10 November 2010

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