project.File.Add


This function adds a file to the active project.

[Specification format]

project.File.Add(fileName, category = "")

[Argument(s)]

Argument

Description

fileName

Specify the full path of the file to be added to the active project.

When specifying multiple files, specify in the format ["file1", "file2"].

category

Specify the category that the file is added (default: not specified).

When specifying multiple levels, specify in the format ["one", "two"].

[Return value]

If a file was added to the active project successfully: True

If there was an error when a file was added to the active project: False

If there was an error when any files were added to the active project when multiple files were specified for fileName: False

[Detailed description]

-

This function adds the file specified in fileName to the active project.

-

If category is specified, the file is added below that category.
If the specified category does not exist, it is created newly.

[Example of use]

>>>project.File.Add("C:/project/sample/src/test.c", "test")
True
>>>project.File.Add(["C:/project/sample/src/test1.c", "C:/project/sample/src/test2.c"], ["test", "src"])
True