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

FEAT #1151

parent 29ee88f4
No related branches found
No related tags found
No related merge requests found
......@@ -1041,6 +1041,7 @@ class docservers_controler
*/
public function getNextFileNameInDocserver($pathOnDocserver)
{
umask(0022);
//Scans the docserver path
$fileTab = scandir($pathOnDocserver);
//Removes . and .. lines
......
......@@ -114,6 +114,7 @@ function Ds_copyOnDocserver(
*/
function Ds_createPathOnDocServer($docServer)
{
umask(0022);
if (!is_dir($docServer . date('Y') . DIRECTORY_SEPARATOR)) {
mkdir($docServer . date('Y') . DIRECTORY_SEPARATOR, 0770);
Ds_setRights($docServer . date('Y') . DIRECTORY_SEPARATOR);
......
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