Unit 'amigados' Package
[Overview][Constants][Types][Procedures and functions][Index] [#aros]

SetProtection

Set protection for a file or directory

Declaration

Source position: amigados.pas line 2229

function SetProtection(

  const Name: PChar;

  Protect: LongWord

):LongBool;

Arguments

Name

  

Name of File

Protect

  

Protection Mask required

Description

Sets the protection attributes on a file or directory. Use FIBF_* for protection bits. The archive bit should be cleared by the filesystem whenever the file is changed. Backup utilities will generally set the bit after backing up each file.

See also

SetComment

  

Change a files' comment string

Examine

  

Examine a directory or file associated with a lock

ExNext

  

Examine the next entry in a directory


Documentation generated on: 2021-07-30