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: Parameters: - $path (string)
Returns: bool
-
public abstract
OC\Files\Storage\PolyFill\CopyDirectory::
file_exists
($path)¶ - Check if a file or folder exists
Source: Parameters: - $path (string)
Returns: bool
-
public abstract
OC\Files\Storage\PolyFill\CopyDirectory::
unlink
($path)¶ - Delete a file or folder
Source: Parameters: - $path (string)
Returns: bool
-
public abstract
OC\Files\Storage\PolyFill\CopyDirectory::
opendir
($path)¶ - Open a directory handle for a folder
Source: Parameters: - $path (string)
Returns: resource | bool
-
public abstract
OC\Files\Storage\PolyFill\CopyDirectory::
mkdir
($path)¶ - Create a new folder
Source: 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: Parameters: - $source
- $target
Returns: bool