Add one or several URLs to the list of managed repositories
nbAdd = atomsRepositoryAdd(url) nbAdd = atomsRepositoryAdd(url, section)
Matrix of strings : list of the URLs to add
This argument controls where the repository is added.
section is a single-string and its value should be :
"allusers": the repository is added to the
"allusers" list and all user of scilab are affected.
"user": the repository is added to the
"user" list and only the current user is affected.
If SCI/contrib is write accessible, "allusers" is the default value. Otherwise, the default value is "user".
An integer : the number of repositories successfully added.
atomsRepositoryAdd adds one or multiple URLs to the list of repositories and returns
the number of repositories successfully added.
// Create the test repository exec("SCI/modules/atoms/tests/unit_tests/atomsTestUtils.sce", -1); repository = atomsCreateTestRepository("scene10", %F); atomsRepositoryList() atomsRepositoryAdd(repository) atomsRepositoryList() // Cleaning atomsRepositoryDel(repository); | ![]() | ![]() |