PHP Class Consolidation\Cgr\FileSystemUtils

Show file Open project: consolidation/cgr

Public Methods

Method Description
allInstalledProjectsInBaseDir ( string $globalBaseDir ) : string[] Find all installed projects in the global 'base-dir'.
applyDir ( $dir ) Set the current working directory if it was specified.
listDirectories ( string $d ) : string[] Return all of the directories in a given directory
mkdirParents ( $path ) : boolean Create a directory at the specified path. Also create any parent directories that do not yet exist.

Protected Methods

Method Description
allInstalledProjectsInOneOrg ( $globalBaseDir, $org ) : string[] Find all installed projects in one organization dir.

Method Details

allInstalledProjectsInBaseDir() public static method

Find all installed projects in the global 'base-dir'.
public static allInstalledProjectsInBaseDir ( string $globalBaseDir ) : string[]
$globalBaseDir string
return string[]

allInstalledProjectsInOneOrg() protected static method

Find all installed projects in one organization dir.
protected static allInstalledProjectsInOneOrg ( $globalBaseDir, $org ) : string[]
return string[]

applyDir() public static method

Set the current working directory if it was specified.
public static applyDir ( $dir )

listDirectories() public static method

Return all of the directories in a given directory
public static listDirectories ( string $d ) : string[]
$d string directory to scann
return string[]

mkdirParents() public static method

Create a directory at the specified path. Also create any parent directories that do not yet exist.
public static mkdirParents ( $path ) : boolean
$path The directory path to create.
return boolean