|  | 
 | ||||
|        | |||||
|  | ||||||
| Other Library Functions | ||||||
| function | vfsList | 
| Library: File system utilities (OMVFS legacy) Include: omvfs.xin | 
define external function vfsList
   matching  value       stream   path-match optional  initial {"*"}
       into  modifiable  stream   namelist
    include  value       integer  include    optional  initial {VFS-FULL-CONTENTS}
or
define external function vfsList
   matching  value       stream   URL-match  optional  initial {"*"}
         on  value       vfsDir   dir
       into  modifiable  stream   namelist
    include  value       integer  include    optional  initial {VFS-FULL-CONTENTS}
Argument definitions
Use vfsList to list the files and/or subdirectories in a directory. The results are returned as the items in a modifiable stream shelf. This shelf is initially cleared of all contents.
You must include the following line at the beginning of your OmniMark program:
include "omvfs.xin"
path-match:
URL-match:
The vfsDir object dir must:
include must be one of the following values:
An item is added to the names shelf for every directory and/or file that meets
General OS operation failure exceptions will return external exception VFS300. The accompanying text will contain details on the reason for the exception.
The precise wildcard matching algorithm used is platform dependent, and thus a given file pattern may match a slightly different set of files on different platforms in some cases.
External exception VFS111 is thrown if an URL supplied as a parameter to this function contains invalid encoding.
For complete details on absolute URLs and valid encoding, see Internet Standards RFC 1738: Uniform Resource Locators.
For complete details on relative URLs, see Internet Standards RFC 1808: Relative Uniform Resource Locators.
External exception VFS004 is thrown if the URL or path exceeds system length limits.
This program will collect a list of all items in the current working directory, check the last modified date, and output a list of everything that has been modified since 8:00am EST, October 31, 2000
    include "omvfs.xin"
    include "omdate.xin"
    process
       local stream listing variable
  	. . .
       vfsList
       	into listing
       	include VFS-FULL-CONTENTS
       repeat over listing
          local stream attrs variable
          vfsDescribe listing
             into attrs
          output listing || "%n" when ymdhms-second-difference ( attrs{"mtime"},
             "20001131080000-0500" ) > 0
       again
Copyright © Stilo International plc, 1988-2010.