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=7134The 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