
Click above to get retro games delivered to your door ever month!
X-Hacker.org- NetLib for Clipper, Version 6.0 - n_rights( <cpathspec> )
[<<Previous Entry] [^^Up^^] [Next Entry>>] [Menu] [About The Guide]
N_RIGHTS( <cPathspec> )
Parameters
<cPathspec>
Path to the directory.
Returns
The list of rights is returned as a character string. Each character
represents a specific right:
Code Right
R Read
W Write
C Create
M Modify
D Delete
S Subdirectory
Description
The list is returned in the order "RWCMDS," packed so there are no
embedded spaces if a right is missing. That is, "RWD" rather than "RW
D" will be returned.
A minimum of "RW" is required to open files with Clipper (USE, RESTORE,
APPEND FROM, and so on). A minimum of "RWC" is required to create files
with Clipper (COPY, CREATE, INDEX, and so on).
If the specified directory is on a local drive or a stand-alone system,
then the full string "RWCMDS" is returned.
Examples
// Check to see whether files in directory
// H:\APPL\DATA can be opened.
IF !('RW' $ N_RIGHTS('H:\APPL\DATA'))
? 'Cannot access specified directory'
RETURN
ENDIF
See Also: N_FATTRGET()
Online resources provided by: http://www.X-Hacker.org --- NG 2 HTML conversion by Dave Pearson