Opens the directory associated with the I/O file object and creates an internal listing of the contents.
openDir(string mask);
Parameter |
Description |
---|---|
mask |
UNIX regular expression that identifies the files or directories to place in the internal listing. To place all the associated directory contents into the internal listing, use double quotes (“_”) as the mask. |
Integer. Returns the number of items placed into the internal listing, if successful, and -1, if failed.
Commands |
Command Modifiers |
---|---|
.(any character) |
*(none or more) |
[(character list) |
+(one or more) |
[^(not in list) |
{m,n} {range} |
$(end of match) |
Pointer to object |
Object |
---|---|
|
|
string mymask;
mymask = “[a-d]”;
mymask = “[^a-d]”;
mymask = “.[m-p]”
mymask = “sybs$”
mymask = “a[a-z].*001
Copyright © 2005. Sybase Inc. All rights reserved. |
![]() |