Function NnetDirs() Foundation
Retrieves subdirectory information.
NnetDirs( <cPath> , ;
[<nAttribute|cAttribute>], ; // Type: NC Default: 16
[<lIsNetware3x>] ; // Default: .F.
) --> aDirectory
Returns a two dimensional array with information about subdirectories of <cPath> or an empty array in case of an error. The number of elements in each subarray depends on the third parameter. #define constants from XBTNETW.CH are used to access the subarray elements:
Element | Constant | Description |
---|---|---|
1 | ND_NAME | Name of directory |
2 | ND_CREADATE | Creation date |
3 | ND_CREATIME | Creation time |
4 | ND_RIGHTS | Access rights |
5 | ND_OWNER | Name of owner |
6 *) | ND_UPDDATE | Date of last change |
7 *) | ND_UPDTIME | Time of last change |
8 *) | ND_ARCDATE | Date of last archive |
9 *) | ND_ARCTIME | Time of last archive |
10 *) | ND_ARCHIVER | Name of archiver |
|
<cPath>
A string which contains the path whose subdirectories are to be searched. It may contain wildcard characters like "*" or "?" but no file specification.
<nAttribute|cAttribute>
By default this parameter is ignored. If <lIsNetware3x> is set .T. attributes for subdirectories can be specified either as character or as numeric value. Only those subdirectories are listed in the returned array which match the specified attribute.
Numeric | Character | Description |
---|---|---|
1 | "R" | Read only |
2 | "H" | Hidden directories |
4 | "S" | System directories |
16 *) | "D" | Subdirectory |
32 | "A" | Archived |
|
To specify multiple attributes add the numeric values or concatenate the characters.
If you see anything in the documentation that is not correct, does not match your experience with the particular feature or requires further clarification, please use this form to report a documentation issue.