[Pharo-project] FSFileSystem: modification date

Damien Pollet damien.pollet at gmail.com
Sat Jan 28 12:57:46 EST 2012


I started fixing that, but it was before Colin's refactoring, so now
one would need to fix the fix…


On 28 January 2012 02:04, Débora Fortini <deborafortini at gmail.com> wrote:
> ok, Thank you! ;)
>
> On 27 January 2012 21:42, Camillo Bruni <camillo.bruni at inria.fr> wrote:
>> Hi Deby,
>>
>> Open a bug report :) I think the memory FS should handle the modification / creation dates exactly as it would on disk...
>>
>>
>> BTW:
>>
>> file := (fs/'hello') withExtension: 'txt'
>>
>> can be written as
>>
>> file := (fs/'hello') , 'txt'
>>
>> best
>> camillo
>>
>> On 2012-01-27, at 23:33, Débora Fortini wrote:
>>> While using FileSystem I found that the memory storage doesn't save
>>> the modification date. Here is an example of what is failing:
>>>
>>>       fs := FSFilesystem memory.
>>>       file := (fs/'hello') withExtension: 'txt'.
>>>       file fileStreamDo: [ :stream | stream nextPutAll: 'foo' ].
>>>       file entry modification  ---> 1901-01-01T00:00:00-03:00
>>>
>>> This is a little awkward, because I want to use the memory storage to
>>> write tests...
>>> Should I open a bug entry? isn't it a bug?
>>>
>>> Thank you in advance!
>>>
>>> Deby
>>>
>>
>>
>



-- 
Damien Pollet
type less, do more [ | ] http://people.untyped.org/damien.pollet




More information about the Pharo-dev mailing list