[Pharo-project] (FileDirectory default directoryExists: '..') answers false on Mac OS
Of course, the default directory is not a root dir of my file system :) -- Best regards, Igor Stasenko AKA sig.
Yes, and (FileDirectory default directoryExists: '.') is false too... Don't you hate this FileDirectory thing ? It's conveniency hardly compare to VW.Filename. For example, I'd like a #directoryExists without argument, It took me some times before I discovered it's #exists So you have to write: (FileDirectory default containingDirectory exists). But, beforing smiling, you'll have to try this: (FileDirectory on: '/') containingDirectory. Hehe, I don't like this class Nicolas 2010/12/30 Igor Stasenko <siguctua@gmail.com>:
Of course, the default directory is not a root dir of my file system :)
-- Best regards, Igor Stasenko AKA sig.
I ***hate*** it and all the file management. This is so ugly and clunky. On Dec 30, 2010, at 10:20 AM, Nicolas Cellier wrote:
Yes, and (FileDirectory default directoryExists: '.') is false too...
Don't you hate this FileDirectory thing ? It's conveniency hardly compare to VW.Filename.
For example, I'd like a #directoryExists without argument, It took me some times before I discovered it's #exists
So you have to write: (FileDirectory default containingDirectory exists).
But, beforing smiling, you'll have to try this: (FileDirectory on: '/') containingDirectory.
Hehe, I don't like this class
Nicolas
2010/12/30 Igor Stasenko <siguctua@gmail.com>:
Of course, the default directory is not a root dir of my file system :)
-- Best regards, Igor Stasenko AKA sig.
On 30 December 2010 10:20, Nicolas Cellier <nicolas.cellier.aka.nice@gmail.com> wrote:
Yes, and   (FileDirectory default directoryExists: '.') is false too...
Don't you hate this FileDirectory thing ?
i do.. but i have to use what is available , unfortunately...
It's conveniency hardly compare to VW.Filename.
For example, I'd like a #directoryExists without argument, It took me some times before I discovered it's #exists
yeah, but check the call chain for #assureExistence, this is where it used, instead of #exists. VMMaker using assureExistence for creating dirs.
So you have to write: Â Â (FileDirectory default containingDirectory exists).
no.. i have to write: | top | top := FileDirectory default containingDirectory. VMMaker generate: StackInterpreter to: (top / 'src') fullName platformDir: ( top / 'platforms') fullName excluding: #(BrokenPlugin IA32ABIPluginSimulator SlangTestPlugin TestOSAPlugin FFIPlugin ReentrantARMFFIPlugin ReentrantFFIPlugin ReentrantPPCBEFFIPlugin). instead of proposed by Eliot: | def | def := FileDirectory default . VMMaker generate: StackInterpreter to: (def / '../src') fullName platformDir: ( def / '../platforms') fullName excluding: #(BrokenPlugin IA32ABIPluginSimulator SlangTestPlugin TestOSAPlugin FFIPlugin ReentrantARMFFIPlugin ReentrantFFIPlugin ReentrantPPCBEFFIPlugin).
But, beforing smiling, you'll have to try this: Â Â (FileDirectory on: '/') containingDirectory.
Hehe, I don't like this class
Nicolas
-- Best regards, Igor Stasenko AKA sig.
participants (3)
-
Igor Stasenko -
Nicolas Cellier -
Stéphane Ducasse