On Friday, May 3, 2002, at 02:33 , Paresh Kakrecha wrote:

> I just ran your code on my machine and it worked for me.
> check the write permission on parent directory of Abs
>
> if still not work then use
> system("/usr/bin/rm -rf Abs");
>
> -Paresh.
[..]

>> use File::Path;
>> rmtree("Abs",1,1) or die "dir not del";
>> print "done";
>> ----
>>
>> The output is
>>
>> unlink ../htdocs/store/newpages/Abstract/abc
>> ----
>>
>> It neither prints the die statement nor the done - ofcourse it doesn't 
>> actually delete the file and the dir at all.
>>
>> Do let me know if there's an alternative to deleting directories 
>> recursively.

actually what you have to do is clear all of the files out
of the directory and all of the subdirectories of it before
you can actually remove the directory itself.

the 'unlink' is that has removed that file

I would expect that it is in the process of trying to traverse
a directory....

as you will notice in the output at:

http://www.wetware.com/drieux/CS/lang/Perl/Beginners/unlinkRmTree.txt

There is the chance that your OS has 'issues' with how permission
bits are actually being set - and/or that your process has begun
to wander off chasing symbolic links outside of the scope....



ciao
drieux

---


-- 
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to