You appear to be a bot. Output may be restricted
Description
Change to the directory if it exists
Usage
$string = Git::chdir( $source_dir );
Parameters
- $source_dir
- ( string ) required –
Returns
string previous directory for resetSource
File name: oik-batch/includes/class-git.phpLines:
1 to 10 of 10
public function chdir( $source_dir ) { $changed = is_dir( $source_dir ); if ( $changed ) { $this->cwd = getcwd(); $changed = chdir( $source_dir ); } else { $this->cwd = null; } return( $this->cwd ); }View on GitHub