Legato
Legato

GoFiler Legato Script Reference

 

Legato v 1.5d

Application v 5.25a

  

 

Chapter SixFile Functions (continued)

6.2 File Access Modes

6.2.1 Access Modes

At the lowest level, Legato negotiates with the operating system to request file access permissions. Generally, under Windows, files are accessed as read or write with or without sharing. When sharing files, the allowed permissions must be set for other programs or users that may access the targeted file.

In addition to the above, each user group, folder and file may have securities settings and access rights that will impact the ability to script to access the data.

6.2.2 File Mode Codes

The following bits are used on various open and create operations:

  Define   Bitwise
Value
  Description  
  Access Modes          
    FO_READ   0x00000000   Read-Only (default)  
    FO_WRITE   0x00000001   Read and Write Access  
    FO_WANT_OVERLAPPED   0x00000004   Want Overlapped I/O  
    FO_WANT_ATTRIBUTES   0x00000008   Want Attributes Changes  
    FO_SHARE_READ   0x00000010   Allow Others to Open as Read  
    FO_SHARE_WRITE   0x00000020   Allow Others to Open as Write  
    FO_TEMP_FILE   0x00010001   Create/Delete Temporary File  
    FO_DELAY_CREATE   0x00020001   Create Only, Delay on Share  
    FO_CREATE_HIDDEN   0x00080000   Make Hidden on Create  
    FO_ICM_EXCLUDE   0x00100000   Delete, Do Not Call ICM  
    FO_WAIT_OPEN   0x00200000   Delay on Share (OpenFile only)  
    FO_ALLOW_INHERIT_HANDLE   0x00400000   Set Security Descriptor to Inherit  
    FO_FORCE_SPOOL   0x00800000   Forces Spool Out (requires create or FO_WRITE)  
  Applies to Some Operations          
    FO_DO_NOT_CORRECT_NAME   0x10000000   Will Not Correct 8.3/Path Issues  
    FO_NO_HTTP_CACHE   0x40000000   No Cache Request on HTTP Load  
    FO_NO_ERROR_REPORT   0x80000000   Return Errors, No Message Box  
  Additional Modes        
    FO_DELAY_FLAG   0x00020000   Delay on Share Error, Waits and Retries  

 

Bits can be OR’d together for various effects. Some functions, such as CreateFile, will, by default, set FO_WRITE