function to delete a folder
Hi,
Is there any function to delete a folder which has few files in it ? I tried rimdir() bit it can only delete empty folders; unlink() can not delete directory entries. any other function ? |
yep.
In the terminal, type Quote:
|
I'm looking for function to use in C program ( using gcc ).
|
How about this:
Code:
system ("rm -rf xyz"); |
The system() call is very resource intensive as it does the fork() behind. Unfortunately I can't use it. Any other function ?
|
try this
rimdir() { echo `rm -rf dirname` return } |
The operative part of the rm command source is line 343:
Code:
enum RM_status status = rm (file, &x); |
Quote:
|
All times are GMT -5. The time now is 07:19 AM. |