FILE-INFO system handle
- Last Updated: January 18, 2024
- 2 minute read
- OpenEdge
- Version 12.8
- Documentation
A handle to an operating system file.
Syntax
|
- attribute
- Specifies an attribute of the
FILE-INFOhandle.
Attributes
Example
After you set the value of the FILE-NAME attribute, you
can read the values of the other attributes. For example:
r-osfile.p
|
Notes
- The
FILE-NAME,FULL-PATHNAME, andPATHNAMEattributes can hold names that contain Unicode characters. See Internationalize ABL Applications for more information about Unicode. - You cannot use the
FILE-INFOhandle to by-pass operating system security. You must have read access to the file and the directory that contains it to obtain information throughFILE-INFO. - These attributes return the Unknown value (
?) until they are set, and also if the specified file cannot be found or you do not have permission to access the file. - If you set the
FILE-NAMEattribute to a relative pathname, theFILE-INFOhandle searches the currentPROPATHto locate the file. - The
FILE-TYPEattribute returns a string containing exactly one of the following file type characters:D— If the file is a directoryF— If the file is a standard file or FIFO pipe (UNIX systems)M— If the file is a member of an ABL libraryS— If the file is a special device (UNIX systems)X— If the file type is unknown (contact your Progress Software Corporation Technical Support representative when you receive this value)
The attribute string can contain any of the following file type characters:
H— If the file is hiddenL— If the file is a symbolic link (UNIX systems)P— If the file is a pipe file (UNIX systems)R— If the file is readableW— If the file is writable
- The
FULL-PATHNAMEattribute returns the absolute pathname of the file specified in theFILE-NAMEattribute. - If the
FILE-NAMEattribute contains a simple filename or relative pathname, thePATHNAMEattribute contains the pathname of the specified file starting with the directory on the PROPATH where it is found. Otherwise, thePATHNAMEattribute contains the absolute pathname specified in theFILE-NAMEattribute. - The
TYPEattribute returns the widget type,PSEUDO-WIDGET.