Game Development Community

Delete Folder?

by Ronald J Nelson · in Torque Game Engine · 09/04/2008 (9:42 pm) · 3 replies

I am trying to set up a file caching system based upon folders with the client's name. I also want to clear the cache at the time when the client quits the game. I know there is a deleteFile function, what I want to know is if there is a delete folder function?

If not has anyone done this already?

#1
09/05/2008 (6:31 am)
OK. If there is not this function, is there a file renaming function?
#2
09/05/2008 (11:52 am)
I don't know if this is different in TGE, but I did a little looking around in TGEA and found this, declared in platform.h and defined in winFileio.cpp

bool dFileRename(const char *oldName, const char *newName)
#3
09/05/2008 (2:47 pm)
No its not in TGEA, but I figured it out using MSDN.