Hi Stef,

On Sun, Jun 18, 2017 at 05:54:08PM +0200, Stephane Ducasse wrote:
> Hi guys
> 
> (FileSystem workingDirectory / 'book-result' / 'W01-Welcome')
> relativeToReference: FileSystem workingDirectory
> >>>  Path * 'book-result' / 'W01-Welcome'
> 
> And I would like to get 'book-result/W01-Welcome'
> 
> I tried all kind of combination and the lack of comments (Yes I know I
> added the ones there
> is not helping).
> 
> Stef

DiskStore current stringFromPath: 
  ((FileSystem workingDirectory / 'book-result' / 'W01-Welcome')
    relativeToReference: FileSystem workingDirectory)

will return the string you want.

But I would argue that Path>>fullName is incorrectly implemented and
should actually be:

fullName
        "Answer the string representation of the receiver"

        ^self delimiter join: self segments


Cheers,
Alistair


Reply via email to