[Pharo-users] pathSegments of workingDirectory?
Sven Van Caekenberghe
sven at stfx.eu
Thu Feb 14 01:45:30 EST 2019
> On 14 Feb 2019, at 03:56, David Richards <david.i.richards.iii at gmail.com> wrote:
> Hi community,
> | file |
> file := FileLocator workingDirectory .
> file fullName .
> "==> '/Users/dr/Documents/Pharo/images/Study (Pharo 7.0 - 64bit stable)'"
> file pathSegments .
> "==> #()"
> How do we obtain path segments for the working directory?
> Is this an edge case where pathSegments does not return a semantically consistent value?
A FileLocator is a bit special, it is usable, but not yet fully realised, more abstract.
You can use resolve. Consider:
FileLocator home pathString.
FileLocator home resolve pathSegments.
More information about the Pharo-users