Code::Blocks Forums

Developer forums (C::B DEVELOPMENT STRICTLY!) => Plugins development => Topic started by: fitzsean on April 11, 2007, 02:12:30 pm

Title: Add files recursively in .script files
Post by: fitzsean 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
Title: Re: Add files recursively in .script files
Post by: Biplab 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
Title: Re: Add files recursively in .script files
Post by: mandrav 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.
Title: Re: Add files recursively in .script files
Post by: Game_Ender 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.