GNOME Bugzilla – Bug 644112
"(copy)" string in filename added in front of first instead of last dot when copying to folder where file with same name exists
Last modified: 2011-03-21 18:40:36 UTC
To reproduce the bug: Make a file named one.two.three Copy-paste it into the same directory. It will be created a file named one(copy).two.tree This means that checks for the first dot when it should check for the last one and place before it the dot. See the link for example pic: http://uppix.net/a/6/7/3b8d359f0cd0d032d481308e9cb28.png
Created attachment 183326 [details] [review] patch Your request makes sense to me. In general, file extensions can't contain dots -- therefore all dots except the last should be considered part of the file's basename. This is what the views' rename code already does. The attached patch fixes this problem. I hope I haven't overlooked anything :-) Please review.
Review of attachment 183326 [details] [review]: This bug is an old one and it's been discussed a lot, but that patch isn't sufficient for all cases, e.g. filename.tar.gz, which actually "breaks" those files for the "average user".
Thanks for the bug report. This particular bug has already been reported into our bug tracking system, but please feel free to report any further bugs you find. *** This bug has been marked as a duplicate of bug 351290 ***