-cleanup + recursive directors can be specified for $baseFilesDir

This commit is contained in:
mkonecny 2011-02-28 00:54:10 -05:00
parent 6864a246f3
commit ba330b94df
2 changed files with 1 additions and 11 deletions

View file

@ -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',

View file

@ -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";