Property | Type | Description | |
---|---|---|---|
$copyOnWindows | |||
$fs | |||
$relative | |||
$shellHelper | Platformsh\Cli\Helper\ShellHelperInterface |
Method | Description | |
---|---|---|
__construct ( Platformsh\Cli\Helper\ShellHelperInterface $shellHelper = null, Symfony\Component\Console\Output\OutputInterface $fs = null ) | ||
archiveDir ( string $dir, string $destination ) | Create a gzipped tar archive of a directory's contents. | |
copy ( string $source, string $destination, boolean $override = false ) | Copy a file, if it is newer than the destination. | |
copyAll ( string $source, string $destination, array $skip = ['.git', '.DS_Store'], boolean $override = false ) | Copy all files and folders between directories. | |
extractArchive ( string $archive, string $destination ) | Extract a gzipped tar archive into the specified destination directory. | |
getHomeDirectory ( ) : string | ||
getName ( ) | ||
makePathAbsolute ( string $relativePath ) : string | Make a relative path into an absolute one. | |
makePathRelative ( string $path1, string $path2 ) : string | Make a absolute path into a relative one. | |
mkdir ( string $dir, integer $mode = 493 ) | ||
remove ( string | array | Traversable $files, boolean $retryWithChmod = false ) : boolean | Delete a file or directory. | |
setCopyOnWindows ( boolean $copyOnWindows = true ) | ||
setOutput ( Symfony\Component\Console\Output\OutputInterface $output ) | ||
setRelativeLinks ( boolean $relative = true ) | Set whether to use relative links. | |
symlink ( $target, $link ) : string | Create a symbolic link to a file or directory. | |
symlinkAll ( string $source, string $destination, boolean $skipExisting = true, boolean $recursive = false, string[] $blacklist = [], boolean $copy = false ) | Symlink or copy all files and folders between two directories. |
Method | Description | |
---|---|---|
fixTarPath ( string $path ) : string | Fix a path so that it can be used with tar on Windows. | |
getTarExecutable ( ) : string | ||
inBlacklist ( string $filename, array $blacklist ) : boolean | Check if a filename is in the blacklist. | |
isWindows ( ) : boolean | ||
unprotect ( string | array | Traversable $files, boolean $recursive = false ) : boolean | Make files writable by the current user. |
public __construct ( Platformsh\Cli\Helper\ShellHelperInterface $shellHelper = null, Symfony\Component\Console\Output\OutputInterface $fs = null ) | ||
$shellHelper | Platformsh\Cli\Helper\ShellHelperInterface | |
$fs | Symfony\Component\Console\Output\OutputInterface |
public archiveDir ( string $dir, string $destination ) | ||
$dir | string | |
$destination | string |
public extractArchive ( string $archive, string $destination ) | ||
$archive | string | |
$destination | string |
protected fixTarPath ( string $path ) : string | ||
$path | string | |
return | string |
public static getHomeDirectory ( ) : string | ||
return | string | The absolute path to the user's home directory. |
public makePathAbsolute ( string $relativePath ) : string | ||
$relativePath | string | |
return | string |
public remove ( string | array | Traversable $files, boolean $retryWithChmod = false ) : boolean | ||
$files | string | array | Traversable | A filename, an array of files, or a \Traversable instance to delete. |
$retryWithChmod | boolean | Whether to retry deleting on error, after recursively changing file modes to add read/write/exec permissions. A bit like 'rm -rf'. |
return | boolean |
public setCopyOnWindows ( boolean $copyOnWindows = true ) | ||
$copyOnWindows | boolean |
public setOutput ( Symfony\Component\Console\Output\OutputInterface $output ) | ||
$output | Symfony\Component\Console\Output\OutputInterface |
public setRelativeLinks ( boolean $relative = true ) | ||
$relative | boolean |
protected unprotect ( string | array | Traversable $files, boolean $recursive = false ) : boolean | ||
$files | string | array | Traversable | A filename, an array of files, or a \Traversable instance. |
$recursive | boolean | Whether to change the mode recursively or not. |
return | boolean | True on success, false on failure. |