Issue 7134 in pharo: Add conversions between FileReference and ZnUrl

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

Issue 7134 in pharo: Add conversions between FileReference and ZnUrl

pharo
Status: Accepted
Owner: ----
Labels: Milestone-2.0 Type-Feature

New issue 7134 by [hidden email]: Add conversions between  
FileReference and ZnUrl
http://code.google.com/p/pharo/issues/detail?id=7134

The new, yet to be integrated, ZnUrl from the standalone  
Zinc-Resource-Meta-Core package makes it trivial and elegant to implement  
conversions between FileReference and ZnUrl.

This is a quick note to remind us that we should actually implement this.

ZnUrl new
        scheme: #file;
        addPathSegments: '/Users/sven/Desktop/t3 pricing 2012.rtf' asFileReference  
pathSegments;
        yourself.
       
FileReference
        fileSystem: FileSystem disk
        path: (AbsolutePath withAll: '/Users/sven/Desktop/t3%20pricing%202012.rtf'  
asZnUrl pathSegments).
       
(AbsolutePath withAll: '/Users/sven/Desktop/t3%20pricing%202012.rtf'  
asZnUrl pathSegments) asFileReference.

Note how both use the 'path segments' concept ;-)



_______________________________________________
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 7134 in pharo: Add conversions between FileReference and ZnUrl

pharo
Updates:
        Labels: -Milestone-2.0

Comment #1 on issue 7134 by [hidden email]: Add conversions between  
FileReference and ZnUrl
http://code.google.com/p/pharo/issues/detail?id=7134

Not a show stopper for releasing 2.0


_______________________________________________
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 7134 in pharo: Add conversions between FileReference and ZnUrl

pharo

Comment #2 on issue 7134 by [hidden email]: Add conversions between  
FileReference and ZnUrl
http://code.google.com/p/pharo/issues/detail?id=7134

I looked into doing a slice, but in the end I decided to add an extra  
package to Zn, Zinc-Resource-Meta-FileSystem that contains bidirectional  
conversions between ZnUrl and FileReference using #asZnUrl and  
#asFileReference. The package also contains ZnFileUrlTests and needs  
Zinc-Resource-Meta-Core and (Pharo 2) FileSystem.

We can include it with a future Zn update.


_______________________________________________
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 7134 in pharo: Add conversions between FileReference and ZnUrl

pharo
Updates:
        Status: Closed

Comment #3 on issue 7134 by [hidden email]: Add conversions between  
FileReference and ZnUrl
http://code.google.com/p/pharo/issues/detail?id=7134

Ok! So I close this issue.


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