FileSystem disk resolve: '.'      => Path / 'home' / 'vmusulainen' /
'Downloads' / 'pharo3.0' / 'shared' 
FileSystem disk resolve: '..'     => Path / 'home' / 'vmusulainen' /
'Downloads' / 'pharo3.0'
Ta-da:
FileSystem disk resolve: '../..'  => Path / 'home' / 'vmusulainen' /
'Downloads' / 'pharo3.0' / 'shared'

chain of messages from #resolve:  brings to Path>>from:

Path from: '.' => Path workingDirectory
Path from: '..' => Path * '..'
Path from: '../..' Path workingDirectory

and it's implementation of addParentElementTo:

addParentElementTo: result
        result isEmpty
                ifTrue: [result add: '..']
                ifFalse: [result removeLast]

I think that is the wrong behavior, isn't it?
        
         



--
View this message in context: http://forum.world.st/Path-issue-tp4741803.html
Sent from the Pharo Smalltalk Users mailing list archive at Nabble.com.

Reply via email to