The C (POSIX.1) remove() function is NOT just unlink() in drag. It's something like this (in perl): sub remove ($) { if ( !-l $_[0] && -d _ ) { rmdir $_[0]; } else { unlink $_[0]; } } In other words, it's rmdir() if its argument is a directory, and unlink() otherwise. -- Spider Boardman (at home) [EMAIL PROTECTED] The management (my cats) made me say this. http://www.ultranet.com/~spiderb PGP public key fingerprint: 96 72 D2 C6 E0 92 32 89 F6 B2 C2 A0 1C AB 1F DC
- RFC 29 (v1) unlink() should be left alone Perl6 RFC Librarian
- Re: RFC 29 (v1) unlink() should be left alone skud
- Re: RFC 29 (v1) unlink() should be left alone Nathan Wiger
- Re: RFC 29 (v1) unlink() should be left a... Ariel Scolnicov
- Re: RFC 29 (v1) unlink() should be left alone Johan Vromans
- Re: RFC 29 (v1) unlink() should be left alone John Porter
- Re: RFC 29 (v1) unlink() should be left alone Bart Lateur
- RE: RFC 29 (v1) unlink() should be left alone Myers, Dirk
- Re: RFC 29 (v1) unlink() should be left alone Spider Boardman
- Re: RFC 29 (v1) unlink() should be left a... Damien Neil
- Re: RFC 29 (v1) unlink() should be le... Spider Boardman
- Re: RFC 29 (v1) unlink() should ... Tom Christiansen
- Re: RFC 29 (v1) unlink() should be le... Tim Jenness
- Re: RFC 29 (v1) unlink() should be left alone Russ Allbery
- RE: RFC 29 (v1) unlink() should be left alone Fisher Mark