swirl
Guide to OmniMark 8   OmniMark home
docs home 
IndexConceptsTasksSyntaxLibrariesLegacy LibrariesErrors
 
      Other Library Functions  
function  

glob

 
 

Library: Process execution (OMPROCESS)
Import: omprocess.xmd
Return type: None

Returns:


Declaration

export function
        glob              value      string file-pattern
             in-directory value      string initial-directory optional 
                     into write-only string pathnames


 

Argument definitions

file-pattern
is a platform-dependent pattern used to match filenames
initial-directory
is the name of the directory in which the expansion will be performed
pathnames
is used to store the expanded filenames


Purpose

The glob function is used to generate a list of filenames that match a given pattern.

The expansion of the pattern into a list of filenames is platform-dependent.

If initial-directory is not specified, it defaults to the empty string; this is interpreted as the current working directory on all platforms.

If initial-directory is specified, has a non-zero length, and does not end with a slash (/), one is appended.

When the glob function returns, the write-only string argument pathnames contains the matched filenames, if any.

Exceptions

The following exception may occur:

        Other Library Functions
   command-line
   executable-name
   execute
   glob
   omprocess-version
 
 

Top [ INDEX ] [ CONCEPTS ] [ TASKS ] [ SYNTAX ] [ LIBRARIES ] [ LEGACY LIBRARIES ] [ ERRORS ]

OmniMark 8.2.0 Documentation Generated: March 13, 2008 at 3:27:39 pm
If you have any comments about this section of the documentation, please use this form.

Copyright © Stilo International plc, 1988-2008.