FileTools
IsDirectory
determine if a file is a directory
Calling Sequence
Parameters
Description
Examples
IsDirectory(file)
file
-
filename or the file descriptor of an open file
The IsDirectory(file) command returns true if file refers to a directory. If it is not a directory, false is returned.
If the file does not exist or an invalid file descriptor is passed, an exception is raised.
FileToolsTextWriteFile⁡file,data
4
FileToolsIsDirectory⁡file
false
FileToolsRemove⁡file
See Also
file_types
FileTools[Exists]
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