Skip to content
Snippets Groups Projects
Commit 81d3762f authored by Giovannoni Laurent's avatar Giovannoni Laurent
Browse files

FEAT #3210

parent fed4c34b
No related branches found
No related tags found
No related merge requests found
......@@ -60,6 +60,10 @@ function Ds_copyOnDocserver(
$storeInfos = array('error' => _FILE_ALREADY_EXISTS);
return $storeInfos;
}
if (!is_dir($destinationDir)) {
mkdir($destinationDir, 0770, true);
Ds_setRights($destinationDir);
}
$cp = copy($sourceFilePath, $destinationDir . $fileDestinationName);
Ds_setRights($destinationDir . $fileDestinationName);
if ($cp == false) {
......@@ -138,9 +142,10 @@ function Ds_createPathOnDocServer($docServer)
}
if (isset($GLOBALS['wb']) && $GLOBALS['wb'] <> '') {
$path = $docServer . date('Y') . DIRECTORY_SEPARATOR.date('m')
. DIRECTORY_SEPARATOR . $GLOBALS['wb'] . DIRECTORY_SEPARATOR;
. DIRECTORY_SEPARATOR . 'BATCH' . DIRECTORY_SEPARATOR
. $GLOBALS['wb'] . DIRECTORY_SEPARATOR;
if (!is_dir($path)) {
mkdir($path, 0770);
mkdir($path, 0770, true);
Ds_setRights($path);
} else {
return array(
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment