Property | Type | Description | |
---|---|---|---|
$arrShouldBeSynchronized | array | Synchronize the database |
Method | Description | |
---|---|---|
addResource ( string $strResource, boolean $blnUpdateFolders = true ) : |
Adds a file or folder with its parent folders | |
copyResource ( string $strSource, string $strDestination ) : |
Copies a file or folder to a new location | |
deleteResource ( string $strResource ) : null | Removes a file or folder | |
moveResource ( string $strSource, string $strDestination ) : |
Moves a file or folder to a new location | |
shouldBeSynchronized ( string $strPath ) : boolean | Check if the current resource should be synchronized with the database | |
syncFiles ( ) : string | Synchronize the file system with the database | |
updateFolderHashes ( mixed $varResource ) | Update the hashes of all parent folders of a resource |
Method | Description | |
---|---|---|
isFileSyncExclude ( string $strPath ) : boolean | Check if a file or folder is excluded from synchronization |
public static addResource ( string $strResource, boolean $blnUpdateFolders = true ) : |
||
$strResource | string | The path to the file or folder |
$blnUpdateFolders | boolean | If true, the parent folders will be updated |
return | The files model |
public static copyResource ( string $strSource, string $strDestination ) : |
||
$strSource | string | The source path |
$strDestination | string | The target path |
return | The files model |
public static deleteResource ( string $strResource ) : null | ||
$strResource | string | The path to the file or folder |
return | null | Explicitly return null |
protected static isFileSyncExclude ( string $strPath ) : boolean | ||
$strPath | string | The relative path |
return | boolean | True if the file or folder is excluded from synchronization |
public static moveResource ( string $strSource, string $strDestination ) : |
||
$strSource | string | The source path |
$strDestination | string | The target path |
return | The files model |
public static shouldBeSynchronized ( string $strPath ) : boolean | ||
$strPath | string | The relative path |
return | boolean | True if the current resource needs to be synchronized with the database |
public static updateFolderHashes ( mixed $varResource ) | ||
$varResource | mixed | A path or an array of paths to update |
protected static array $arrShouldBeSynchronized | ||
return | array |