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 46455 - `Duplicate' gives wrong names for files with more than one extension or '.' in name
`Duplicate' gives wrong names for files with more than one extension or '.' i...
Status: RESOLVED DUPLICATE of bug 306341
Product: nautilus
Classification: Core
Component: File and Folder Operations
2.6.x
Other All
: Normal minor
: ---
Assigned To: Nautilus Maintainers
Nautilus Maintainers
: 141212 (view as bug list)
Depends on:
Blocks:
 
 
Reported: 2001-02-08 20:17 UTC by John Harper
Modified: 2005-07-10 19:58 UTC
See Also:
GNOME target: ---
GNOME version: 2.9/2.10



Description John Harper 2001-09-10 00:59:12 UTC
E.g. if I select a file called `foo.tar.gz' and duplicate it, the new file is
called `foo.tar (copy).gz' which isn't very useful



------- Additional Comments From sullivan@eazel.com 2001-02-08 15:27:49 ----

I guess if we assume that all periods in the file name are extension separators,
then the (copy n) should go before the first period rather than before the last
period. Is that a safe assumption? (I guess the real question is, will anything
bad happen if we change to use this assumption?) Seems safe to me. Doesn't seem
necessary for 1.0 though, so I'm marking this 1.0.1. Complain to Don if you
disagree.



------- Additional Comments From jsh@pixelslut.com 2001-02-08 15:35:58 ----

I don't think anything bad will happen from assuming that all dots are extension
separators, but it still seems sub-optimal. E.g. a file `some.thing.tar.gz'

Assuming that the extensions needs to be retained, then the only other method
would be to do something like `copy of foo.tar.gz', (but then the new file
wouldn't sort next to the old one..)




------- Additional Comments From pavel@eazel.com 2001-03-16 11:05:12 ----

One alternative would be to compile a list of common extensions like .tar.gz and
special case them. The reason why I think this could work fine is because double
extensions like .tar.gz are considered an extension rather than .tar being part
of the name because they are a well-known convention. 



------- Additional Comments From snickell@stanford.edu 2001-07-23 00:39:48 ----

Taking bugs previously assigned to Pavel, assigning them to myself. Will parse
them out at my leisure , but many are GnomeVFS bugs we should look at for 2.0



------- Bug moved to this database by unknown@bugzilla.gnome.org 2001-09-09 20:59 -------
Comment 1 John Fleck 2002-01-05 04:24:23 UTC
Changing to "old" target milestone for all bugs laying around with no milestone set.
Comment 2 Andrew Sobala 2002-06-06 23:18:28 UTC
Still in gnome 2.
Comment 3 Matthew Gatto 2004-05-10 04:02:35 UTC
*** Bug 141212 has been marked as a duplicate of this bug. ***
Comment 4 Matthew Gatto 2004-05-10 04:03:21 UTC
still in 2.6
Comment 5 Subodh Soni 2005-01-20 09:46:02 UTC
Still present in Nautilus 2.9.3 built from CVS HEAD
Comment 6 Christian Neumair 2005-07-10 19:58:27 UTC
Thanks for your bug report! This is fixed with Nautilus 2.11.

*** This bug has been marked as a duplicate of 306341 ***