News:

When registered with our forums, feel free to send a "here I am" post here to differ human beings from SPAM bots.

Main Menu

Add files recursively in .script files

Started by fitzsean, April 11, 2007, 02:12:30 PM

Previous topic - Next topic

fitzsean

Hi all,
Is there any way in a .script file to add files recursively. The closest I can see is GetProjectManager().AddFileToProject(..,..,..) but I cant even find a way to loop through a directory and add the files it finds. Any help would be greatly appreciated.

Cheers
S

Biplab

Quote from: fitzsean on April 11, 2007, 02:12:30 PM
... but I cant even find a way to loop through a directory and add the files it finds. Any help would be greatly appreciated.

The scripting system is not a full fledged programming language. So if you want to use any such advanced feature, write a plugin instead.

Regards,

Biplab
Be a part of the solution, not a part of the problem.

mandrav

Not all SDK functions are exposed yet to scripts. This usually happens when a new function is added in the SDK. Usually it takes some time until it is exposed to scripts.
Be patient!
This bug will be fixed soon...

Game_Ender

The scripting system is a full fledged programming language, it just not have the same standard library you would expect of of scripting language.  Make and CMake both have "scripting systems" which are real languages, and suffer for it.  Code::Blocks took the right route by actually using a scripting language.