function imce_check_directory in IMCE 7
Same name and namespace in other branches
- 6.2 inc/imce.page.inc \imce_check_directory()
- 6 inc/page.inc \imce_check_directory()
Create a writable directory(any level) under file system directory.
1 call to imce_check_directory()
- imce_working_directory in inc/
imce.page.inc - Return an available directory for the profile.
File
- inc/
imce.page.inc, line 1006 - Implements the file browser.
Code
function imce_check_directory($dirname, $imce) {
$diruri = imce_dir_uri($imce, $dirname);
if (!imce_reg_dir($dirname) || !file_prepare_directory($diruri, FILE_CREATE_DIRECTORY)) {
return imce_inaccessible_directory($dirname, $imce);
}
return TRUE;
}