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

SetProtection

Set protection for a file or directory

Declaration

Source position: amigados.pas line 1716

function SetProtection(

  name: PChar;

  mask: LongInt

):LongBool;

Arguments

name

  

Name of File

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