HPlogo New Features of MPE/iX: Using the Hierarchical File System: 300 MPE/iX Computer Systems > Chapter 7 Managing Files

Determining File Types

» 

Technical documentation

Complete book in PDF
» Feedback

 » Table of Contents

 » Glossary

 » Index

Before you try to work with a file created using HFS syntax, you may need to determine what type of file it is. Use the LISTFILE command with the ,2 option to list compete information about a file. The TYP field indicates the type of file it is and whether it is a directory.

Using LISTFILE, 2 produces output such as the following:

    <user listfile /OFFICIAL/GP1,2

     PATH= /OFFICIAL/



    CODE  ------------LOGICAL RECORD-----------  ----SPACE----

   FILENAME

            SIZE  TYP        EOF      LIMIT R/B  SECTORS #X MX



              0   GBD          0          0   0       64  2  *  GP1/

The TYP field uses letters to represent types of files. In the example shown here, the TYP field contains GBD indicating that it is a group directory.

Table 7-2 defines letter codes that can appear in the TYP field.

Table 7-3 File and Directory Types

TYP CodeDescription
First ColumnRecord Type
AAccount directory
BByte-stream "records"
FFixed-length records
GGroup
HHierarchical directory
RRoot directory
UUndefined-length records
VVariable-length records
Second ColumnASCII or Binary Format
AASCII
BBinary
Third ColumnCCTL Indicator
CCCTL (carriage control)
Fourth ColumnFile Type
DDirectory (root, account, group, or hierarchical)
KKSAM XL files
LSymbolic link file
MMessage files
OCircular files
RRIO files
SSpool file
dDevice link file
fFIFO file
sStreams

 

NOTE: If the file was not created with the CCTL option, the File Type indicators will be displayed in the third column instead of the fourth.
Feedback to webmaster