Overview of the FileTools Package
List of FileTools Subpackages
List of FileTools Package Commands
List of FileTools:-Text Module Commands
List of FileTools:-Binary Module Commands
List of FileTools:-Compressed Module Commands
The FileTools package is a collection of file manipulation utilities.
The FileTools package contains three subpackages: Text, Binary, and Compressed, as well as other commands that can be applied to files.
Text files contain certain formatting concepts that do not apply to binary data (for example, lines and newline characters). Also, the data in a text file is represented using characters. In Maple, the internal representation is converted to a string and then written. For more information, see the Text subpackage help page.
The data in a binary file is written to disk using a binary representation. Currently, this means that only hardware data types, integers, and floats can be written using the Binary module. For more information, see the Binary subpackage help page.
For working with compressed files, see the Compressed subpackage help page.
Each command in the FileTools package can be accessed by using either the long form or the short form of the command name in the command calling sequence.
The long form, FileTools:-command, is always available. The short form can be used after loading the package.
The Text subpackage contains commands specific for manipulating text files.
The Binary subpackage contains commands for working with files of binary data.
The Compressed subpackage contains commands for the creation, reading, and writing of compressed files.
return absolute filepath
determine if the current position of a file is at the end
return base name of file
return the canonical filepath
copy a file
determine if a file exists in file system or in a Workbook
return file extension
flush output for a buffered file
compute a hash value for a file
determine if a filename is a directory
determine if the user has execute permission for a file
determine if a file is a symbolic link
determine if a file lock is obtainable
determine if a filename is an open file
determine if the user has read permission for a file
determine if the user has write permission for a file
join components into filepath
display the contents of a directory
obtain a file lock
make a directory
obtain the modification time of a file
return parent directory
set or return the current position within a file
remove a file
remove a directory
rename a file
obtain size of a file in bytes
split filepath into components
obtain status information about a file
return a directory for storing temporary files
return a filepath that may be used for a temporary file
return a filename that may be used for a temporary file
release a file lock
generate an iterator to traverse subdirectories
To display the help page for a particular FileTools command, see Getting Help with a Command in a Package.
Download Help Document