User forums > General (but related to Code::Blocks)
New project wizard - remove files from project
oth_florian:
Hi guys,
I want to add a new project wizard. The basic things works, I have now a project wizard and all files in my "files" directory will be copied into the project directory (like I want). The problem is: I want to remove some files from the project after importing it. There is the function "GetFilesDir" which gives the directory of all files and add ALL these files to the project. But in my directory structure there are also some not to compile files (like examples). How can I remove these files in the squirrel script?
Thanks for help!
oBFusCATed:
The API docs are here: http://wiki.codeblocks.org/index.php/Scripting_commands
But I don't see anything useful there. :(
BlueHazzard:
http://wiki.codeblocks.org/index.php/Scripting_commands#IO_namespace
all functions to create and delete files?
oth_florian:
--- Quote from: BlueHazzard on May 24, 2017, 09:40:00 am ---http://wiki.codeblocks.org/index.php/Scripting_commands#IO_namespace
all functions to create and delete files?
--- End quote ---
I see the deleting files from disk functions. But is this removing the files also from project? At the end I want remove these files only from project, so the user using the wizard can look at the examples.
oBFusCATed:
You can try ProjectFile::RemoveBuildTarget, but I'm not sure it will work.
Navigation
[0] Message Index
[#] Next page
Go to full version