dir

package

KCFinder @version 3.12 @author Pavel Tzonkov sunhater@sunhater.com

Methods

Get the content of the given directory. Returns an array with filenames or FALSE on failure

content(string $dir,array $options = null): mixed
static

Arguments

$dir

string

$options

array

Response

mixed

fileSort

fileSort( $a, $b)
static

Arguments

$a

$b

Checks if the given directory is really writable. The standard PHP function is_writable() does not work properly on Windows servers

isWritable(string $dir): boolean
static

Arguments

$dir

string

Response

boolean

Recursively delete the given directory. Returns TRUE on success.

prune(string $dir,boolean $firstFailExit = true,array $failed = null): mixed
static

If $firstFailExit parameter is true (default), the method returns the path to the first failed file or directory which cannot be deleted. If $firstFailExit is false, the method returns an array with failed files and directories which cannot be deleted. The third parameter $failed is used for internal use only.

Arguments

$dir

string

$firstFailExit

boolean

$failed

array

Response

mixed