Re: [Pharo-users] Relative path

2014-01-18 Thread Hilaire Fernandes
Le 17/01/2014 23:41, Nicolai Hess a écrit : > you can create a relative path with > Path class>>* > > p:=Path * 'fruits' / 'apples.png'. Thanks Nicolai, I was trying this one but struggle to use it to later get the full path. Your mention to the #resolve: messages makes it clear now. Hilaire

Re: [Pharo-users] Relative path

2014-01-17 Thread Nicolai Hess
2014/1/17 Hilaire Fernandes > Le 17/01/2014 22:13, jannik.laval a écrit : > > You what is the Platform clipartsPath ? > > It is something like > FileSystem disk workingDirectory parent / 'Cliparts > > > I am thinking that what you need is : > > FileSystem workingDirectory / 'fruits' / 'apples.pn

Re: [Pharo-users] Relative path

2014-01-17 Thread Hilaire Fernandes
Le 17/01/2014 22:13, jannik.laval a écrit : > You what is the Platform clipartsPath ? It is something like FileSystem disk workingDirectory parent / 'Cliparts > I am thinking that what you need is : > FileSystem workingDirectory / 'fruits' / 'apples.png’ Yes but no, I want 'fruits' / 'apples.p

Re: [Pharo-users] Relative path

2014-01-17 Thread jannik.laval
Hi Hilaire, You what is the Platform clipartsPath ? I am thinking that what you need is : FileSystem workingDirectory / 'fruits' / 'apples.png’ something like that. Jannik On Jan 17, 2014, at 10:06 PM, Hilaire Fernandes wrote: > Hello > > I want to send a message with a relative path as a

[Pharo-users] Relative path

2014-01-17 Thread Hilaire Fernandes
Hello I want to send a message with a relative path as argument: self getClipart: 'fruits' / 'apples.png' It should look like that but it does not work of course. Then from getClipart method, it should be something like: getClipart: relativePath file := Platform clipartsPath / relativePath