FileTools
Exists
determine if a file exists in the file system or in the Workbook
Calling Sequence
Parameters
Description
Examples
Compatibility
Exists(file)
file
-
filename, the file descriptor of an open file or Workbook URI
The Exists(file) command checks the file system for a specified file. If the file exists, Exists returns true; otherwise, it returns false.
If the file parameter is a Workbook URI, then the existence check is performed in a specified Workbook.
Working with files
FileToolsTextWriteFile⁡file,data
4
FileToolsExists⁡file
true
FileToolsExists⁡doesnotexist
false
FileToolsRemove⁡file
Working with Workbook
FileToolsExists⁡maple://Start.maple/Start
FileToolsExists⁡maple://Start.maple/Images/NewDocument.png
FileToolsExists⁡maple://Start.maple/Entry that does not exist
The FileTools[Exists] command was updated in Maple 2016.
See Also
file_types
FileTools[IsDirectory]
FileTools[IsExecutable]
FileTools[IsReadable]
FileTools[IsWritable]
FileTools[ModificationTime]
FileTools[Remove]
FileTools[Size]
FileTools[Status]
FileTools[Text][Close]
FileTools[Text][WriteString]
IO_errors
Download Help Document