FILE_GET_ATTRIBUTES

Use

Retrieves certain file attributes of the specified file. File attributes checked are the read only, hidden and compressed flags. Certain available flags are not checked. If neither one of the mentioned flags nor one of the not returned flags is set, the "normal" flag is set.

Arguments

[IMPORTING] filename TYPE STRING

Name of the file whose flags should be retrieved. This method does not support environment variables in the file name. Only absolute or relative paths are permitted.

[EXPORTING] readonly TYPE ABAP_BOOL

Flag indicating whether the file is read only or not.

[EXPORTING] normal TYPE ABAP_BOO

This flag is set if no other flag is set.

[EXPORTING] hidden TYPE ABAP_BOOL

If the file should not be included in the normal directory listing, the hidden flag is set for the file.

[EXPORTING] archive TYPE ABAP_BOOL

This flag is set if the file should be backed up or removed.

Exceptions

CNTL_ERROR

If neither Windows nor Java nor Web GUI is being used.

ERROR_NO_GUI

Currently not used.

FILE_GET_ATTRIBUTES_FAILED

Thrown if the file attributes for the specified file could not be retrieved.

NOT_SUPPORTED_BY_GUI

This exception is raised if the GUI being used is a Web GUI.

WRONG_PARAMETER

If either no file name was specified or no argument was assigned to one or more of the flags.