[BUG][FIX] FileList does not rename and does not delete some files

Boris Gaertner Boris.Gaertner at gmx.net
Wed Jan 21 13:29:31 UTC 2004


Attached you find a proposal for a fix. It is an ugly
hack, but it betters the situation on Windows.
I tested these options with files of type .cs and .st :

code-file browser
changelist browser
rename
delete

To avoid early file opening, I put the directory and the
file name into an array with two elements. That use of
arrays is ugly, I like to call it "the missing class pattern".

For the benefit of Windows users, I hope that
we can include this or a better fix into 3.7.

Gerrtings, Boris

From: Ned Konz <ned at squeakland.org>
To: <squeak-dev at lists.squeakfoundation.org>
Cc: Boris Gaertner <Boris.Gaertner at gmx.net>
Sent: Tuesday, January 06, 2004 8:54 PM
Subject: Re: [BUG] FileList does not rename and does not delete some files


> On Tuesday 06 January 2004 11:41 am, Boris Gaertner wrote:
>
> > I think that I can say that files with suffixes '.cs' and '.st'
> > are not deleted. Interestingly enough, you cannot rename
> > such files with the FileList. However, when you rename
> > a '.cs' file with the Windows explorer (and give it a
> > different suffix, say  'txt') , you can delete it with the
> > filelist.
> >
> > Is there an option somewhere that protects files with
> > suffixes 'cs', 'st' from deletion? I could not find one,
> > but perhaps you know more about options?
>
> Are these files open somehow? Some versions of Windows won't let you
delete or
> rename open files.
>
> Do this:
>
> Smalltalk garbageCollect.
> ((StandardFileStream allSubInstances reject: [ :ea | ea closed ]) collect:
> [ :ea | ea fullName]) explore
>
>
> > For now, my questions to the community are:
> > 1. Can you reproduce this bug on a windows platform?
>
> > 2. Can you reproduce this bug on other platforms?
>
> Not on Linux.
>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: FileListDeletionFix.1.cs
Type: application/octet-stream
Size: 2026 bytes
Desc: not available
Url : http://lists.squeakfoundation.org/pipermail/squeak-dev/attachments/20040121/cfe60887/FileListDeletionFix.1.obj


More information about the Squeak-dev mailing list