[Overview][Constants][Types][Procedures and functions][Index] Reference for unit 'amigados' (#aros)

SetProtection

Set protection for a file or directory

Declaration

Source position: amigados.pas line 2273

function SetProtection(

  const Name: STRPTR;

  Protect: LongWord

):LongInt;

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: 2017-01-10