Project

General

Profile

Bug #4334

Updated by Nicolas PERRON about 10 years ago

With    *Download From A Shared Folder*, #3646 lead to have a file with name of a directory instead of placing the file in the destination directory. 
 What is more unfortunate here is that if we copy a file in a path requiring a directory with the same name than a file it will not work. 

 Example 1: 
 - /tmp/foo is a directory 
 - we want to copy file1 in /tmp/foo with "/tmp/foo/" in destination in the Directive 
 - result: /tmp/foo will be replaced by the content of file1 (cf #3646) 

 Example 2: 
 - /tmp/foo is a file 
 - file2 is another file 
 - we want to copy file2 in /tmp/foo/bar/baz 
 - result: the folder /tmp/foo will not be able to be created since a file with the same name already exist 

 Now, imagine that you made the first mistake, you will have to delete the wrong file (/tmp/foo) before to    apply the second example without error. example. 

 I suppose we should propose to enforce or not a file/directory during the copy ?

Back