[haXe] Checking/creating directory
Aaron Fay
aaron at earthman.ca
Tue Apr 10 22:02:36 CEST 2007
Hi list,
I am fiddling around with a piece of code that checks for the existence
of a directory, and if not present, creates it (in XP). The issue is
when I create the folder:
public function makeFolder(obj:Dynamic){
//return neko.FileSystem.createDirectory(obj.folder);
try {
neko.FileSystem.createDirectory(obj.folder);
} catch( msg : String ) {
trace("Error message : " + msg );
return false;
}
return true;
}
When I call the function, it creates the folder, but the console displays:
App.hx:32: Error message : std at sys_file_type
I've looked around, but I can't figure out what it means. The script
creates the folder, but throws an error...
Any ideas?
Thanks, Aaron
More information about the Haxe
mailing list