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:
@@ -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);
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user