1
0
mirror of https://github.com/phpbb/phpbb.git synced 2025-07-30 21:40:43 +02:00

[ticket/15276] Add methods to get file info

PHPBB3-15276
This commit is contained in:
Rubén Calvo
2017-08-07 19:54:11 +02:00
parent 4c5114c14d
commit 946f0348a2
3 changed files with 85 additions and 0 deletions

View File

@@ -235,4 +235,19 @@ class local implements adapter_interface, stream_interface
throw new exception('STORAGE_CANNOT_COPY_RESOURCE');
}
}
public function get_file_info($path)
{
return [];
}
public function get_size($path)
{
return filesize($this->root_path . $path);
}
public function get_mimetype($path)
{
return mime_content_type($this->root_path . $path);
}
}