Status - Maple Help
For the best experience, we recommend viewing online help using Google Chrome or Microsoft Edge.
Our website is currently undergoing maintenance, which may result in occasional errors while browsing. We apologize for any inconvenience this may cause and are working swiftly to restore full functionality. Thank you for your patience.

Online Help

All Products    Maple    MapleSim


FileTools

  

Status

  

obtain status information about a file

 

Calling Sequence

Parameters

Description

Examples

Calling Sequence

Status(file)

Parameters

file

-

filename or the file descriptor of an open file

Description

• 

The Status command returns information about file in the form of a list.  The list is of length six.

  

- The first four elements are boolean valued.

  

- The first three indicate if the user has read, write, and execute permission for file.

  

- The fourth element indicates if file is a directory.

  

- The fifth element is the modification time of file in seconds since the epoch.

  

- The final element is the file size in bytes.

• 

Each piece of information can also be found using one of the following functions: IsReadable, IsWritable, IsExecutable, IsDirectory, ModificationTime, or File.  Calling file Status once is usually more efficient than calling more than one of these functions.

• 

If the file does not exist or an invalid file descriptor is passed, an exception is raised.

Examples

FileToolsTextWriteFilefile,data

4

(1)

FileToolsStatusfile

true,true,false,false,1037120124,4

(2)

FileToolsRemovefile

See Also

file_types

FileTools

FileTools[Exists]

FileTools[IsDirectory]

FileTools[IsExecutable]

FileTools[IsReadable]

FileTools[IsWritable]

FileTools[ModificationTime]

FileTools[Remove]

FileTools[Size]

FileTools[Text][Close]

FileTools[Text][WriteString]

IO_errors