After an evaluation, GNOME has moved from Bugzilla to GitLab. Learn more about GitLab.
No new issues can be reported in GNOME Bugzilla anymore.
To report an issue in a GNOME project, go to GNOME GitLab.
Do not go to GNOME Gitlab for: Bluefish, Doxygen, GnuCash, GStreamer, java-gnome, LDTP, NetworkManager, Tomboy.
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
"(copy)" string in filename added in front of first instead of last dot when ...
Status: RESOLVED DUPLICATE of bug 351290
Product: nautilus
Classification: Core
Component: general
2.32.x
Other Linux
: Normal normal
: ---
Assigned To: Nautilus Maintainers
Nautilus Maintainers
Depends on:
Blocks:
 
 
Reported: 2011-03-07 11:55 UTC by Alex Solanos
Modified: 2011-03-21 18:40 UTC
See Also:
GNOME target: ---
GNOME version: ---


Attachments
patch (507 bytes, patch)
2011-03-14 11:11 UTC, Stefano Teso
reviewed Details | Review

Description Alex Solanos 2011-03-07 11:55:10 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
Comment 1 Stefano Teso 2011-03-14 11:11:48 UTC
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.
Comment 2 A. Walton 2011-03-14 13:18:51 UTC
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".
Comment 3 A. Walton 2011-03-14 13:18:55 UTC
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".
Comment 4 A. Walton 2011-03-14 13:19:10 UTC
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".
Comment 5 Cosimo Cecchi 2011-03-21 18:40:36 UTC
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 ***