CopyDirectory

trait OC\Files\Storage\PolyFill\CopyDirectory
Source:lib/private/Files/Storage/PolyFill/CopyDirectory.php#27

Methods

public abstract OC\Files\Storage\PolyFill\CopyDirectory::is_dir($path)
Check if a path is a directory
Source:

lib/private/Files/Storage/PolyFill/CopyDirectory.php#34

Parameters:
  • $path (string)
Returns:

bool

public abstract OC\Files\Storage\PolyFill\CopyDirectory::file_exists($path)
Check if a file or folder exists
Source:

lib/private/Files/Storage/PolyFill/CopyDirectory.php#42

Parameters:
  • $path (string)
Returns:

bool

Delete a file or folder
Source:

lib/private/Files/Storage/PolyFill/CopyDirectory.php#50

Parameters:
  • $path (string)
Returns:

bool

public abstract OC\Files\Storage\PolyFill\CopyDirectory::opendir($path)
Open a directory handle for a folder
Source:

lib/private/Files/Storage/PolyFill/CopyDirectory.php#58

Parameters:
  • $path (string)
Returns:

resource | bool

public abstract OC\Files\Storage\PolyFill\CopyDirectory::mkdir($path)
Create a new folder
Source:

lib/private/Files/Storage/PolyFill/CopyDirectory.php#66

Parameters:
  • $path (string)
Returns:

bool

public OC\Files\Storage\PolyFill\CopyDirectory::copy($source, $target)
Source:lib/private/Files/Storage/PolyFill/CopyDirectory.php#68
protected OC\Files\Storage\PolyFill\CopyDirectory::copyRecursive($source, $target)
For adapters that don’t support copying folders natively
Source:

lib/private/Files/Storage/PolyFill/CopyDirectory.php#87

Parameters:
  • $source
  • $target
Returns:

bool