FileTools - Maple Programming Help

# Online Help

###### All Products    Maple    MapleSim

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)$
 ${"/tmp/mpldoc4"}$ (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.
 • For more information on Maple 16 changes, see Updates in Maple 16.

 See Also