On 1 December 2017 at 17:32, Prof. Andrew P. Black <black@cs.pdx.edu> wrote:
> I have a file reference containing multiple occurrences of .., like this
>
> File @
> /Users/black/graceProgs/lists/../../Development/mg/ The answer will depend on which version of Pharo you are using, but for Pharo7:gracelang/albums_junk.grace
>
> How do I simplify this to show the simpler path without the .. ?�� There
> should be a method on FileReference, no?�� Something like #normalize ?�� Or
> maybe FileReference should do this automatically when it is created?
�� '/Users/black/graceProgs/lists/../../Development/mg/ gracelang/albums_junk.grace'
asFileReference canonicalize
�� "File @ /Users/black/Development/mg/gracelang/albums_junk.grace"