4 include_once(
'Services/FileSystem/classes/class.ilFileSystemStorage.php');
92 while(
$file = readdir($dp))
99 if(preg_match(
"/^([0-9]{10})_[a-zA-Z]*_export_([a-z]+)_([0-9]+)\.[a-z]+$/",
$file,$matches) and $matches[3] == $this->
getContainerId())
101 $timest = $matches[1];
102 $file_info[
'name'] = $matches[0];
103 $file_info[
'timest'] = $matches[1];
104 $file_info[
'type'] = $matches[2];
105 $file_info[
'id'] = $matches[3];
108 $files[$timest] = $file_info;
112 return $files ? $files : array();
119 if(@file_exists($file_name))
121 return file_get_contents($file_name);