Weak support for directory manipulation in Squeak (?)

Norton, Chris chrisn at Kronos.com
Thu Apr 8 19:59:12 UTC 1999


Duane Maxwell wrote:

> I think they should be treated identically except for creation.  The
> differentiation of behaviors for directories and files should be handled
> within the primitives, with the "natural" thing being done, even if it
> means throwing an error.   I think it's silly that deleting a directory
> fails if it's not empty - it should recursively delete its contents.
> 
	[Norton, Chris]  Yikes!  The user should probably be warned first!
When I was a Unix newbie, I accidentally executed the following command,
thinking that it would delete all of the core files from all subdirectories,
and boy was I mistaken!  It nuked my whole machine and it took a couple of
hours to restore everything back.

	rm -rf * "core"           

	(Note: the actual syntax may have changed... I haven't touched Unix
in over 7 years)

	---==> Chris





More information about the Squeak-dev mailing list