[squeak-dev] Re: Spur vs Cog: FileDirectory paths
Nicolai Hess
nicolaihess at web.de
Wed Sep 10 22:29:25 UTC 2014
FileDirectory>>on: path
"Return another instance"
^ self class on: ((path at: 1 ifAbsent: nil) = self pathNameDelimiter
ifTrue: [path]
ifFalse: [pathName asString, (String with: self
pathNameDelimiter), path])
This code does not work on windows, an absolute path does not start with
the pathname delimiter :)
this should be delegated to the platform class (DosFileDirectory for
Windows).
2014-09-11 0:12 GMT+02:00 Eliot Miranda <eliot.miranda at gmail.com>:
> Hi Frank,
>
> I did take a quick look at this but am having difficulty reproducing
> it. Whats your exact context? i.e. is C:\Users\frsheara a mount or a
> directory on Windows? What version of Windows are you running? This does
> look like a worrying bug...
>
> On Wed, Sep 10, 2014 at 2:36 PM, Frank Shearar <frank.shearar at gmail.com>
> wrote:
>
>> So this is getting in between me and running/testing external packages
>> on Spur. The snippet above comes from SqueakMap
>> (SMFileCache>>directoryForPackageRelease:), so maybe there's a
>> workaround we can do just by changing how that method uses
>> FileDirectory?
>>
>> (Although it does concern me that different VMs are behaving so
>> differently.)
>>
>> frank
>>
>> On 9 September 2014 17:47, Frank Shearar <frank.shearar at gmail.com> wrote:
>> > On 9 September 2014 17:45, Frank Shearar <frank.shearar at gmail.com>
>> wrote:
>> >> On Cog, we have:
>> >>
>> >> FileDirectory default on:
>> >> 'C:/Users/frsheara/squeak-ci/target/cogspur.r3072/cogspurwin/'
>> >> => DosFileDirectory on
>> >> 'C:/Users/frsheara/squeak-ci/target/cogspur.r3072/cogspurwin/'
>> >>
>> >> but on Spur, we have:
>> >>
>> >> FileDirectory default on:
>> >> 'C:/Users/frsheara/squeak-ci/target/cogspur.r3072/cogspurwin/'
>> >> => DosFileDirectory on
>> >>
>> 'C:\Users\frsheara\squeak-ci\target\C:/Users/frsheara/squeak-ci/target/cogspur.r3072/cogspurwin/'
>> >>
>> >> Obviously, they can't _both_ be right.
>> >
>> > (Cog r3072, natch)
>> >
>> > frank
>>
>
>
>
> --
> best,
> Eliot
>
>
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.squeakfoundation.org/pipermail/squeak-dev/attachments/20140911/42582cac/attachment.htm
More information about the Squeak-dev
mailing list
|