Issue 5871 in pharo: FileReference>>renameTo: should assume same folder

Previous Topic Next Topic
 
classic Classic list List threaded Threaded
8 messages Options
Reply | Threaded
Open this post in threaded view
|

Issue 5871 in pharo: FileReference>>renameTo: should assume same folder

pharo
Status: Accepted
Owner: [hidden email]
Labels: Type-Enh

New issue 5871 by [hidden email]: FileReference>>renameTo: should  
assume same folder
http://code.google.com/p/pharo/issues/detail?id=5871

We already have moveTo: for a fullName -> b fullName. There is no reason to  
duplicate that functionality in #renameTo: and it's handy not to have to  
create an absolute reference when all you want to do is a simple rename...


_______________________________________________
Pharo-bugtracker mailing list
[hidden email]
http://lists.gforge.inria.fr/cgi-bin/mailman/listinfo/pharo-bugtracker
Reply | Threaded
Open this post in threaded view
|

Re: Issue 5871 in pharo: FileReference>>renameTo: should assume same folder

pharo
Updates:
        Status: FixReviewNeeded

Comment #1 on issue 5871 by [hidden email]: FileReference>>renameTo:  
should assume same folder
http://code.google.com/p/pharo/issues/detail?id=5871

Fix in inbox:  
SLICE-Issue-5871-FileReferencegtgtrenameTo-should-assume-same-folder-SeanDeNigris.1
* FileReference>>renameTo: now takes a basename instead of a reference
* Add a passing test (which failed before)


_______________________________________________
Pharo-bugtracker mailing list
[hidden email]
http://lists.gforge.inria.fr/cgi-bin/mailman/listinfo/pharo-bugtracker
Reply | Threaded
Open this post in threaded view
|

Re: Issue 5871 in pharo: FileReference>>renameTo: should assume same folder

pharo

Comment #2 on issue 5871 by [hidden email]: FileReference>>renameTo:  
should assume same folder
http://code.google.com/p/pharo/issues/detail?id=5871

humm does this make sense?
how do you move a file then? I think this is more unix style using `mv` for  
moving AND renaming files.
(maybe I'm missing something here since I didn't have a look at your slice  
yet :P)


_______________________________________________
Pharo-bugtracker mailing list
[hidden email]
http://lists.gforge.inria.fr/cgi-bin/mailman/listinfo/pharo-bugtracker
Reply | Threaded
Open this post in threaded view
|

Re: Issue 5871 in pharo: FileReference>>renameTo: should assume same folder

pharo

Comment #3 on issue 5871 by [hidden email]: FileReference>>renameTo:  
should assume same folder
http://code.google.com/p/pharo/issues/detail?id=5871

> how do you move a file
FileReference>>moveTo:. That's why I'm proposing this change. We already  
have mv and I've found rename useful too.


_______________________________________________
Pharo-bugtracker mailing list
[hidden email]
http://lists.gforge.inria.fr/cgi-bin/mailman/listinfo/pharo-bugtracker
Reply | Threaded
Open this post in threaded view
|

Re: Issue 5871 in pharo: FileReference>>renameTo: should assume same folder

pharo
Updates:
        Labels: Milestone-2.0

Comment #4 on issue 5871 by [hidden email]: FileReference>>renameTo:  
should assume same folder
http://code.google.com/p/pharo/issues/detail?id=5871

(No comment was entered for this change.)


_______________________________________________
Pharo-bugtracker mailing list
[hidden email]
http://lists.gforge.inria.fr/cgi-bin/mailman/listinfo/pharo-bugtracker
Reply | Threaded
Open this post in threaded view
|

Re: Issue 5871 in pharo: FileReference>>renameTo: should assume same folder

pharo
Updates:
        Status: FixToInclude

Comment #5 on issue 5871 by [hidden email]: FileReference>>renameTo:  
should assume same folder
http://code.google.com/p/pharo/issues/detail?id=5871

(No comment was entered for this change.)


_______________________________________________
Pharo-bugtracker mailing list
[hidden email]
http://lists.gforge.inria.fr/cgi-bin/mailman/listinfo/pharo-bugtracker
Reply | Threaded
Open this post in threaded view
|

Re: Issue 5871 in pharo: FileReference>>renameTo: should assume same folder

pharo

Comment #6 on issue 5871 by [hidden email]: FileReference>>renameTo:  
should assume same folder
http://code.google.com/p/pharo/issues/detail?id=5871

if anyone needs it, the slice also works in 1.4, but as it's an  
enhancement, I don't know if it should be integrated there...


_______________________________________________
Pharo-bugtracker mailing list
[hidden email]
http://lists.gforge.inria.fr/cgi-bin/mailman/listinfo/pharo-bugtracker
Reply | Threaded
Open this post in threaded view
|

Re: Issue 5871 in pharo: FileReference>>renameTo: should assume same folder

pharo
Updates:
        Status: Integrated

Comment #7 on issue 5871 by [hidden email]: FileReference>>renameTo:  
should assume same folder
http://code.google.com/p/pharo/issues/detail?id=5871

in 20114


_______________________________________________
Pharo-bugtracker mailing list
[hidden email]
http://lists.gforge.inria.fr/cgi-bin/mailman/listinfo/pharo-bugtracker