Hi there,
I am trying to write a script plugin which copies all project files to a backupdirectory. In this script I want to use the function IO.CreateDirectory in this way:
local project = GetProjectManager().GetActiveProject();
if (!IsNull(project))
{
local basepath = project.GetCommonTopLevelPath();
if (IO.CreateDirectory(basepath + _T("milestones"), 0755) )
{
::ShowMessage(_T("No Error creating directory"));
}
else
{
::ShowMessage(_T("Error creating directory"));
}
}
the message "No Error creating directory" is displayed correctly but the directory is not created.
Is there any mistake in my script?
I am using WinXP and CodeBlocks svn-build 4898.
Thanks for your help!
Sven