Is there any way to delete a directory in lite-C?

I found "file_delete" but cannot find anything similar for directories.

I am able to create a directory in the following somewhat messy way...

Quote:

//NEW FOLDER OPTION - Creates a folder name based on user input
str_cpy(save_dir,level_string);

compatibility = 8;

galaxy_write = file_open_write("Save_Test.txt");

file_str_write(galaxy_write,"SAVE TEST");//creates a file in order to
//actually create the folder

file_str_write(galaxy_write,",");

file_close(galaxy_write);

compatibility = 10;//resumes normal compatibility


If there's a better way to do it, I would love to know that too.

However, once it's there, I have found that I cannot get rid of it without manually deleting through Windows.