Unit 'AmigaDOS' Package
[Overview][Constants][Types][Procedures and functions][Variables][Index] [#morphunits]

GetFileSysAttr

Query filesystem for attributes, such as maximum filename length, or maximum file size.

Declaration

Source position: amigados.pas line 2300

function GetFileSysAttr(

  DeviceName: PChar;

  Attr: LongInt;

  Storage: Pointer;

  StorageSize: LongInt

):LongInt;

Arguments

DeviceName

  

name of the filesystem to get attributes from

Attr

  

attribute to get information about

Storage

  

storage to hold the result

StorageSize

  

size of the storage

Description

In case of a failure, IoErr() gives more information about the failure:

ERROR_ACTION_NOT_KNOWN
the packet is not supported
ERROR_BAD_NUMBER
the attribute is not known
ERROR_LINE_TOO_LONG
the result doesn't fit the provided StorageSize.

Documentation generated on: 2021-07-30