Re: [Pharo-users] Simplifying a File reference (Ben Coman)

2017-12-03 Thread Alistair Grant
On 4 December 2017 at 01:48, Ben Coman wrote: > > > On 4 December 2017 at 08:25, Richard A. O'Keefe wrote: >> >> >> Ben Coman wrote: >>> >>> While 'canonicalize' obviously fits, it seems a bit exotic and a tongue >>> twist at five syllables. >>> I wonder if 'flatten' might also be suitable. Is

Re: [Pharo-users] Simplifying a File reference (Ben Coman)

2017-12-03 Thread Ben Coman
On 4 December 2017 at 08:25, Richard A. O'Keefe wrote: > > Ben Coman wrote: > >> While 'canonicalize' obviously fits, it seems a bit exotic and a tongue >> twist at five syllables. >> I wonder if 'flatten' might also be suitable. Is there some concept this >> wouldn't cover? >> > > There are tw

Re: [Pharo-users] Simplifying a File reference (Ben Coman)

2017-12-03 Thread Richard A. O'Keefe
Ben Coman wrote: While 'canonicalize' obviously fits, it seems a bit exotic and a tongue twist at five syllables. I wonder if 'flatten' might also be suitable. Is there some concept this wouldn't cover? There are two distinct issues. (1) Can this file name be put into a form that would have

Re: [Pharo-users] Simplifying a File reference

2017-12-01 Thread Ben Coman
On 2 December 2017 at 00:39, Alistair Grant wrote: > On 1 December 2017 at 17:32, Prof. Andrew P. Black > wrote: > > I have a file reference containing multiple occurrences of .., like this > > > > File @ > > /Users/black/graceProgs/lists/../../Development/mg/ > gracelang/albums_junk.grace > > >

Re: [Pharo-users] Simplifying a File reference

2017-12-01 Thread Andreas Brodbeck
Am 01.12.17 um 17:32 schrieb Prof. Andrew P. Black: > I have a file reference containing multiple occurrences of .., like this > > File @ > /Users/black/graceProgs/lists/../../Development/mg/gracelang/albums_junk.grace > > How do I simplify this to show the simpler path without the .. ? There

Re: [Pharo-users] Simplifying a File reference

2017-12-01 Thread Alistair Grant
On 1 December 2017 at 17:32, Prof. Andrew P. Black wrote: > I have a file reference containing multiple occurrences of .., like this > > File @ > /Users/black/graceProgs/lists/../../Development/mg/gracelang/albums_junk.grace > > How do I simplify this to show the simpler path without the .. ? The

[Pharo-users] Simplifying a File reference

2017-12-01 Thread Prof. Andrew P. Black
I have a file reference containing multiple occurrences of .., like this File @ /Users/black/graceProgs/lists/../../Development/mg/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 #normal