PHP Class Devise\Support\IO\FileDiff

Datei anzeigen Open project: devisephp/cms Class Usage Examples

Public Methods

Method Description
__construct ( File $File = null )
different ( string $target, string $source ) : array Gets the files that exist in both $target and $source and have different md5sums
missing ( string $target, string $source ) : array Gets the files that are inside of $target but missing from $source directory
unmodified ( string $target, string $source ) : array Returns all $target files that have not been overriden inside of $source directory

Protected Methods

Method Description
md5 ( [type] $dir ) : [type] [md5 description]

Method Details

__construct() public method

public __construct ( File $File = null )
$File File

different() public method

Gets the files that exist in both $target and $source and have different md5sums
public different ( string $target, string $source ) : array
$target string
$source string
return array

md5() protected method

[md5 description]
protected md5 ( [type] $dir ) : [type]
$dir [type]
return [type]

missing() public method

Gets the files that are inside of $target but missing from $source directory
public missing ( string $target, string $source ) : array
$target string
$source string
return array

unmodified() public method

Returns all $target files that have not been overriden inside of $source directory
public unmodified ( string $target, string $source ) : array
$target string
$source string
return array