BUG 8665 "32K Issue - Maximum of folder in shared/sites/files" SOLVED
- Al realizar la migracion a la nueva estructura de directorios, no se puede descargar los archivos, desde HOME>Documents - Problema resuelto, al crear la nueva estructura de directorios se ha dado los permisos necesarios para dicho directorio * Available from version ProcessMaker-2.5.1-testing.4
This commit is contained in:
@@ -391,9 +391,11 @@ class G
|
|||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
$dir = opendir($source);
|
$dir = opendir($source);
|
||||||
if (! file_exists($destination)) {
|
|
||||||
@mkdir($destination);
|
if (!file_exists($destination)) {
|
||||||
|
G::mk_dir($destination, 0777);
|
||||||
}
|
}
|
||||||
|
|
||||||
while (false !== ( $file = readdir($dir))) {
|
while (false !== ( $file = readdir($dir))) {
|
||||||
if (( $file != '.' ) && ( $file != '..' )) {
|
if (( $file != '.' ) && ( $file != '..' )) {
|
||||||
if ( is_dir($source . '/' . $file) ) {
|
if ( is_dir($source . '/' . $file) ) {
|
||||||
|
|||||||
@@ -547,8 +547,9 @@ class workspaceTools
|
|||||||
//lenght = 2, because the function check . and .. dir links
|
//lenght = 2, because the function check . and .. dir links
|
||||||
$newDiretory = G::getPathFromUIDPlain($UIdDir);
|
$newDiretory = G::getPathFromUIDPlain($UIdDir);
|
||||||
CLI::logging("Migrating $UIdDir to $newDiretory\n");
|
CLI::logging("Migrating $UIdDir to $newDiretory\n");
|
||||||
G::mk_dir($newDiretory);
|
G::mk_dir($newDiretory, 0777);
|
||||||
//echo `cp -R $UIdDir/* $newDiretory/`;
|
//echo `cp -R $UIdDir/* $newDiretory/`;
|
||||||
|
|
||||||
if (G::recursive_copy($UIdDir, $newDiretory)) {
|
if (G::recursive_copy($UIdDir, $newDiretory)) {
|
||||||
CLI::logging("Removing $UIdDir...\n");
|
CLI::logging("Removing $UIdDir...\n");
|
||||||
G::rm_dir($UIdDir);
|
G::rm_dir($UIdDir);
|
||||||
@@ -576,8 +577,9 @@ class workspaceTools
|
|||||||
$goalFile = $levelfile[$lastlevel - 1];
|
$goalFile = $levelfile[$lastlevel - 1];
|
||||||
$newpattern = G::getPathFromFileUIDPlain($blackHoleDir, $goalFile);
|
$newpattern = G::getPathFromFileUIDPlain($blackHoleDir, $goalFile);
|
||||||
CLI::logging("Migrating $blackHoleDir file: $goalFile\n");
|
CLI::logging("Migrating $blackHoleDir file: $goalFile\n");
|
||||||
G::mk_dir($blackHoleDir . '/' . $newpattern[0]);
|
G::mk_dir($blackHoleDir . PATH_SEP . $newpattern[0], 0777);
|
||||||
//echo `cp -R $black$goalFile $black$newpattern[0]/$newpattern[1]`;
|
//echo `cp -R $black$goalFile $black$newpattern[0]/$newpattern[1]`;
|
||||||
|
|
||||||
if (copy($black . $goalFile, $black . $newpattern[0] . '/' . $newpattern[1])) {
|
if (copy($black . $goalFile, $black . $newpattern[0] . '/' . $newpattern[1])) {
|
||||||
unlink($file[$index]);
|
unlink($file[$index]);
|
||||||
} else {
|
} else {
|
||||||
|
|||||||
Reference in New Issue
Block a user