4 include_once
'./Services/FileSystem/classes/class.ilFileSystemStorage.php';
35 return 'ilRestFileStorage';
63 $GLOBALS[
'ilLog']->write(__METHOD__.
' '.$this->getPath().
'/'.$name);
64 if(file_exists($this->
getPath().
'/'.$name))
66 $GLOBALS[
'ilLog']->write(__METHOD__.
' file exists');
67 $return = file_get_contents($this->
getPath().
'/'.$name);
82 $body = $request->post(
"content");
88 $return = basename($tmpname);
90 $GLOBALS[
'ilLog']->write(__METHOD__.
' Writing to path '.
$path);
102 return basename($tmpname);
107 return $this->
getPath().
'/'.$tmpname;
115 $max_age = time() - self::AVAILABILITY_IN_DAYS * 24 * 60 * 60;
117 foreach($ite as
$file)
119 if($file->getCTime() <= $max_age)
122 @unlink($file->getPathname());
125 $GLOBALS[
'ilLog']->write(__METHOD__.
' '. $e->getMessage());