LibraryTools - Maple Programming Help

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

LibraryTools

 ShowContents
 list library contents

 Calling Sequence ShowContents( lib )

Parameters

 lib - (optional) string; directory or file name to search for Maple libraries

Description

 • The ShowContents(lib) command returns a list containing the contents of a library or libraries in a specified file or directory. If the lib argument is omitted, then the contents of all libraries referred to by libname are returned.
 • The list of contents returned contains a sub-list for each named entry in the specified library path.  Each sublist contains the following information.
 1 Member name, as a string
 2 Date and time, as a list of integers specifying the year (all four digits), month (1..12), day (1..31), hour (0..23), minute (0..59), and second (0..59)
 3 Offset, as an integer
 4 Member size in bytes, as an integer
 • If no libraries exist in the specified directory, an error is generated.

Examples

 > $\mathrm{library}≔\mathrm{FileTools}:-\mathrm{JoinPath}\left(\left[\mathrm{kernelopts}\left(\mathrm{mapledir}\right),"lib","MatlabSymbolicToolbox.mla"\right]\right):$
 > $\mathrm{LibraryTools}:-\mathrm{ShowContents}\left(\mathrm{library}\right)$
 $\left[\left[{"MTM.m"}{,}\left[{2016}{,}{2}{,}{16}{,}{23}{,}{42}{,}{18}\right]{,}{102706}{,}{4928}\right]\right]$ (1)