MatrixBerryCore
Static Public Member Functions | List of all members
mxberry::io::PathUtils Class Reference

Static Public Member Functions

static function rmLastPathParts (in pathStr, in nPartsToRemove)
 RMLASTPATHPARTS removes a specified number of path parts (directory names) starting from the tail. More...
 
static function genPathByRootList (in pathToIncludeCVec, in pathPatternToExclude)
 GENPATHBYROOTLIST recursively generates a list of path based on a list of root path and a regular expression exclusion pattern. More...
 

Detailed Description

Definition at line 2 of file PathUtils.m.

Member Function Documentation

◆ genPathByRootList()

static function mxberry::io::PathUtils::genPathByRootList ( in  pathToIncludeCVec,
in  pathPatternToExclude 
)
static

GENPATHBYROOTLIST recursively generates a list of path based on a list of root path and a regular expression exclusion pattern.

*  Input:
*    regular:
*        pathToIncludeCVec: cell[1,] of char[1,] - list of
*            directory names to scan recursively for
*            generating a path list
*        pathPatternToExclude: char[1,] - regex pattern for
*            directory names to exclude (".git|.svn" for instance)
* 
*  Output:
*    pathList: cell[1,] of char[1,] - list of generated
*        directory names
* 
Author
Peter Gagarinov, PhD pgaga.nosp@m.rino.nosp@m.v@gma.nosp@m.il.c.nosp@m.om

◆ rmLastPathParts()

static function mxberry::io::PathUtils::rmLastPathParts ( in  pathStr,
in  nPartsToRemove 
)
static

RMLASTPATHPARTS removes a specified number of path parts (directory names) starting from the tail.

*  Input:
*    regular:
*        pathStr: char[1,] - directory name
*        nPartsToRemove: double[1,1] - number of path parts to
*            remove
* 
*  Output:
*    pathStr: char[1,] - resulting path
* 
Author
Peter Gagarinov, PhD pgaga.nosp@m.rino.nosp@m.v@gma.nosp@m.il.c.nosp@m.om

The documentation for this class was generated from the following file: