My Directory Helper
Adds some extra functions to CI's directory helper
Function Reference [+]
copyr('$source', '$dest')
Recursively copies from one directory to another.
Returns
array
Parameters
(string) $source (string) $dest
chmodr('$path', '$filemode')
Recursively changes the permissions of a folder structure. from php.net/chmod.
Returns
boolean
Parameters
(string) $path (octal) $filemode
directory_to_array('$directory', ['$recursive'=TRUE], [$exclude=array()], ['$append_path'=TRUE], ['$no_ext'=FALSE], ['$_first_time'=TRUE])
Returns an array of file names from a directory.
Returns
array
Parameters
(string) $directory (boolean) $recursive (mixed) $exclude (boolean) $append_path
list_directories('$directory', [$exclude=array()], ['$full_path'=TRUE], ['$is_writable'=FALSE], ['$recursive'=TRUE], ['$_first_time'=TRUE])
Lists the directories only from a give directory.
Returns
array
Parameters
(string) $directory (mixed) $exclude (boolean) $full_path (boolean) $is_writable (boolean) $recursive (boolean) $_first_time