Recursively Delete Folder And Files In C
$10-30 USD
Pagato alla consegna
Can you recursively delete folder and files in C w/o using a call to system()? This is my current code, but I'd like to execute it w/o a call to system() if possible.
char* cmdPrefix = "rm -rf ";
char * cmd;
int len = (int)strlen("/localdir/");
cmd = malloc(len + 10);
memset(cmd, 0, len + 10);
sprintf(cmd, ("%s%s"), cmdPrefix, "//User//owner//Downloads//Test//");
system(cmd);
Rif. progetto: #18763989
Info sul progetto
Assegnato a:
Hi there, I’d like to be considered for your C Project. I’m a strategic developer and programmer with more than 5-year experience and a strong background in developing desktop software, Artificial Intelligence, Databa Altro
7 freelance hanno fatto un'offerta media di $26 per questo lavoro
Yes, I can. Basically, you traverse the folder and delete every file. Then remove the directory itself.
I assume you can use POSIX C here. Otherwise in windows RemoveDirectory winAPI. Somehow it’s possible to to what you have asked w/o using system().
hello sir I have good experience in c and c++ under both windows and Linux I can do this project using visual studio codeblocks dev ... when I complete your project you can check and then you can accept my b Altro
Hello! Using system calls easy but not safe. It possible to do this without system calls. If you have any questions please contact me. Thanks!