[BUG]Should FileDirectory primDeleteDirectory: recurse?
Henrik Gedenryd
h.gedenryd at open.ac.uk
Mon Mar 25 09:01:54 UTC 2002
Tim Rowledge wrote:
> It seems to me that the delete directory prim really ought to
> recursively remove all the sub tree contents. It's quite hard to imagine
> a system where this wouldn't make sense; every hierarchical filesystem
> I've ever come across can handle it.
>
> Mac certainly doesn't do it in practice and that's the only platform in
> front of me right now to check on.
>
> Do we really want to have to do the recursion and deletion ourselves?
>
> tim
Deleting your entire hard drive shouldn't be very fast. Give cmd-. a fair
chance at least!
There is a method called Repository>>deepDeleteRepository that roughly does
the same thing. Feel free to steal it.
I think it is better to leave this inside Squeak, and keep the prim simple.
Henrik
More information about the Squeak-dev
mailing list
|