DIR

Use the DIR function to return information about a file.

COMMAND SYNTAX

    DIR(filename)

The filename is a string argument representing the path and filename of a file. This function returns a dynamic array with four attributes.

AttributeDescription
1File size in bytes
2last modified date (in internal format)
3last modified time (in internal format)
4D if the filename is a directory, blank if
the filename is a file.

EXAMPLE

       IF NOT( GETENV('TAFC_HOME', V.HOME) ) THEN
          CRT 'TAFC_HOME not defined'
          STOP
       END
       CRT OCONV( DIR(V.HOME), 'MCP' )                  ;* e.g. 0^16214^32712^D
       CRT OCONV( DIR(V.HOME : '/jbcmessages'), 'MCP' ) ;* e.g. 204800^15815^57980
Last update: Sat, 16 Jul 2022 15:34