LibraryTools - Maple Programming Help

Online Help

All Products    Maple    MapleSim


Home : Support : Online Help : System : Libraries and Packages : LibraryTools : LibraryTools/AddFromDirectory

LibraryTools

  

AddFromDirectory

  

add all the .m files in a directory to a library

 

Calling Sequence

Parameters

Description

Examples

Calling Sequence

AddFromDirectory( directory, archive, recurse )

Parameters

directory

-

string; directory to search for .m files

archive

-

string; Maple library directory to process

recurse

-

(optional) boolean; whether subdirectories are searched

Description

• 

The AddFromDirectory( directory, archive ) command searches directory and its subdirectories. Files with a .m extension are added to the Maple library archive.

• 

If archive is a directory, Maple assumes the default library name, maple.mla.  Otherwise archive specifies the path and library name.

• 

The optional argument recurse can be used to turn off recursive searching of subdirectories.  If recurse is false, then only the specified directory is searched.

• 

The AddFromDirectory( directory, archive ) command uses the pathname of the .m file relative to directory as the indexname.  The file directory/subdir1/subdir2/file.m is given the indexname 'subdir1/subdir2/file.m'.  As well, the / character is used as the directory separator on all platforms.  Therefore the file windows\dotfiles\foo.m has indexname 'windows/dotfiles/foo.m'.

• 

Warnings are generated if the .m files already exist in the library, but searching continues.

• 

If directory does not exist, an error is generated.

• 

If archive does not specify the location of an archive, an error is generated.

Examples

withLibraryTools:

AddFromDirectory/home/maple/dotM,/home/maple/lib

AddFromDirectory/home/maple/dotMnorec,/home/maple/lib/mylib.mla,false

See Also

LibraryTools

LibraryTools[BuildFromDirectory]

LibraryTools[UpdateFromDirectory]

march

save

savelib

 


Download Help Document

Was this information helpful?



Please add your Comment (Optional)
E-mail Address (Optional)
What is ? This question helps us to combat spam