Skip to content
Snippets Groups Projects
Commit 3de5f432 authored by Rob Swindell's avatar Rob Swindell :speech_balloon:
Browse files

Delete data/file/*.out directory for new user (if exists)

emailfiles.js puts files here that the user requested to download "via email"
and might not have been successfully delivered and deleted. So clean-up.
parent 67501aa4
No related branches found
No related tags found
No related merge requests found
Pipeline #6617 failed
......@@ -3277,6 +3277,9 @@ int newuserdat(scfg_t* cfg, user_t* user)
SAFEPRINTF2(str,"%sfile/%04u.in",cfg->data_dir,user->number); /* delete any files */
delfiles(str, ALLFILES, /* keep: */0); /* waiting for user */
rmdir(str);
SAFEPRINTF2(str,"%sfile/%04u.out",cfg->data_dir,user->number); /* delete any files */
delfiles(str, ALLFILES, /* keep: */0); /* pending transmit to/by user */
rmdir(str);
SAFEPRINTF(tmp,"%04u.*",user->number);
SAFEPRINTF(str,"%sfile",cfg->data_dir);
delfiles(str,tmp, /* keep: */0);
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment