-cleanup + recursive directors can be specified for $baseFilesDir
This commit is contained in:
parent
6864a246f3
commit
ba330b94df
2 changed files with 1 additions and 11 deletions
|
@ -28,16 +28,6 @@ $CC_CONFIG = array(
|
|||
// main directory for storing binary media files
|
||||
'storageDir' => "$baseFilesDir/stor",
|
||||
|
||||
// directory for temporary files
|
||||
'bufferDir' => "$baseFilesDir/stor/buffer",
|
||||
|
||||
// directory for incomplete transferred files
|
||||
'transDir' => "$baseFilesDir/trans",
|
||||
|
||||
// directory for symlinks to accessed files
|
||||
'accessDir' => "$baseFilesDir/access",
|
||||
'cronDir' => "$baseFilesDir/cron",
|
||||
|
||||
"rootDir" => __DIR__."/../..",
|
||||
'pearPath' => dirname(__FILE__).'/../../library/pear',
|
||||
'zendPath' => dirname(__FILE__).'/../../library/Zend',
|
||||
|
|
|
@ -73,7 +73,7 @@ echo " *** Directory Setup ***\n";
|
|||
foreach (array('baseFilesDir', 'storageDir') as $d) {
|
||||
$test = file_exists($CC_CONFIG[$d]);
|
||||
if ( $test === FALSE ) {
|
||||
@mkdir($CC_CONFIG[$d], 02775);
|
||||
@mkdir($CC_CONFIG[$d], 02775, true);
|
||||
if (file_exists($CC_CONFIG[$d])) {
|
||||
$rp = realpath($CC_CONFIG[$d]);
|
||||
echo " * Directory $rp created\n";
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue