How to delete a directory?

Stephan B. Wessels swessels at one.net
Tue Apr 9 01:15:27 UTC 2002


I just looked and your right.  Surprised me too.

You could write a class method on FileDirectory using something like this:


    | dir |
    dir := FileDirectory on: aPathString.
    dir containingDirectory deleteDirectory: dir pathParts last

 - Steve


On 4/8/02 8:31 AM, "Jerome Chan" <eviltofu at mac.com> wrote:

> Given the full path, how do I delete a directory (simply)? Most of what I'
> ve gathered from FileDirectory is that I need to find the parent directory
> and then ask it to delete the directory I want. Is there a simpler way?
> 
> 
> 




More information about the Squeak-dev mailing list