Fix date, size, name
This commit is contained in:
parent
09f2385b1e
commit
dfa25baa7f
@ -27,19 +27,8 @@ namespace OCA\Office;
|
|||||||
class Storage {
|
class Storage {
|
||||||
|
|
||||||
public static function getDocuments() {
|
public static function getDocuments() {
|
||||||
$documents=array();
|
|
||||||
$list=\OCP\Files::searchByMime('video' );
|
$list=\OCP\Files::searchByMime('video' );
|
||||||
foreach($list as $l) {
|
return $list;
|
||||||
$info=pathinfo($l);
|
|
||||||
$size=\OC_Filesystem::filesize($l);
|
|
||||||
$mtime=\OC_Filesystem::filemtime($l);
|
|
||||||
|
|
||||||
$entry=array('url'=>$l,'name'=>$info['filename'],'size'=>$size,'mtime'=>$mtime);
|
|
||||||
$documents[]=$entry;
|
|
||||||
}
|
|
||||||
|
|
||||||
|
|
||||||
return $documents;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user