(FileDirectory default directoryExists: '..') answers false on Mac OS

Previous Topic Next Topic
 
classic Classic list List threaded Threaded
4 messages Options
Reply | Threaded
Open this post in threaded view
|

(FileDirectory default directoryExists: '..') answers false on Mac OS

Igor Stasenko
Of course, the default directory is not a root dir of my file system :)

--
Best regards,
Igor Stasenko AKA sig.

Reply | Threaded
Open this post in threaded view
|

Re: (FileDirectory default directoryExists: '..') answers false on Mac OS

Nicolas Cellier
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 <[hidden email]>:
> Of course, the default directory is not a root dir of my file system :)
>
> --
> Best regards,
> Igor Stasenko AKA sig.
>
>

Reply | Threaded
Open this post in threaded view
|

Re: (FileDirectory default directoryExists: '..') answers false on Mac OS

Stéphane Ducasse
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 <[hidden email]>:
>> Of course, the default directory is not a root dir of my file system :)
>>
>> --
>> Best regards,
>> Igor Stasenko AKA sig.
>>
>>
>


Reply | Threaded
Open this post in threaded view
|

Re: (FileDirectory default directoryExists: '..') answers false on Mac OS

Igor Stasenko
In reply to this post by Nicolas Cellier
On 30 December 2010 10:20, Nicolas Cellier
<[hidden email]> 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.