Astra_Addon_Filesystem::delete( String $file, boolean $recursive = false, boolean $type = false )
Delete file from the filesystem.
Description
Parameters
- $file
-
(String) (Required) Path to the file or directory.
- $recursive
-
(boolean) (Optional) If set to true, changes file group recursively.
Default value: false
- $type
-
(boolean) (Optional) Type of resource. 'f' for file, 'd' for directory.
Default value: false
Return
(void)
Source
File: classes/class-astra-addon-filesystem.php
public function delete( $file, $recursive = false, $type = false ) { astra_addon_filesystem()->get_filesystem()->delete( $file, $recursive, $type ); }
Expand full source code Collapse full source code View on Trac
Changelog
Version | Description |
---|---|
2.6.4 | Introduced. |