wtools
ESOwaftools
 All Classes Namespaces Functions Pages
wtools.recurse Namespace Reference

Functions

def recurse_patterns
 
def recurse
 

Detailed Description

Provides ways to recurse into subdirectories

Function Documentation

def wtools.recurse.recurse (   patterns)
Declare recursion commands for standard commands

The recursion patterns is a variant of standard Python `fnmatch`:

Pattern     | Meaning
----------- | ----------------------------------------------------------
`*`         | matches anything
`?`         | matches single character
`[seq]`     | matches any character in _seq_
`[!seq]`    | matches any character not in _seq_
`!`         | negates the pattern, must be the first part of the pattern

Args:
    patterns: Glob patterns in a list or space separated in a string 
                 "*foo *bar" is equivalent to ['*foo', '*bar']
def wtools.recurse.recurse_patterns (   ctx,
  patterns 
)
Perform recursion using current ctx and patterns.