FileTools - Maple Programming Help

Home : Support : Online Help : Programming : Input and Output : File Manipulation : FileTools : FileTools/TemporaryDirectory

FileTools

 TemporaryDirectory
 return a directory for storing temporary files

 Calling Sequence TemporaryDirectory()

Description

 • The TemporaryDirectory procedure attempts to return a directory suitable for storing temporary files.
 • If no suitable directory is found, the empty string is returned.

Examples

 > $\mathrm{FileTools}:-\mathrm{TemporaryDirectory}\left(\right)$
 ${"/usr/local/repository/tmp/mpldoc_slot0/mpldoc1"}$ (1)
 > $\mathrm{FileTools}:-\mathrm{IsDirectory}\left(\mathrm{FileTools}:-\mathrm{TemporaryDirectory}\left(\right)\right)$
 ${\mathrm{true}}$ (2)

Compatibility

 • The FileTools[TemporaryDirectory] command was introduced in Maple 16.