Game Development Community

Create a directory from script

by gamer · in Torque Game Engine · 02/22/2008 (6:32 pm) · 2 replies

How do I create a directory from script? how do I determine if a directory exists from scripts? I couldn't find any console functions for doing this. FileObject works on but not directories.
thanks!

#1
02/22/2008 (8:03 pm)
Have a try at creating a file in a nonexistent directory. See if it results in automatic creation of the directory.

Gabriel
#2
02/23/2008 (9:15 am)
I believe TorqueScript restricts you to folders under the game executable (A "SandBox"). See: Console/consoleFunctions.cc