Author Topic: Add files recursively in .script files  (Read 10028 times)

fitzsean

  • Guest
Add files recursively in .script files
« on: April 11, 2007, 02:12:30 pm »
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

Offline Biplab

  • Developer
  • Lives here!
  • *****
  • Posts: 1874
    • Biplab's Blog
Re: Add files recursively in .script files
« Reply #1 on: April 11, 2007, 03:07:52 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.

Offline mandrav

  • Project Leader
  • Administrator
  • Lives here!
  • *****
  • Posts: 4315
    • Code::Blocks IDE
Re: Add files recursively in .script files
« Reply #2 on: April 11, 2007, 03:25:30 pm »
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...

Offline Game_Ender

  • Lives here!
  • ****
  • Posts: 551
Re: Add files recursively in .script files
« Reply #3 on: April 12, 2007, 07:45:20 am »
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.