diff options
Diffstat (limited to 'lib/public/Files/SimpleFS/InMemoryFile.php')
-rw-r--r-- | lib/public/Files/SimpleFS/InMemoryFile.php | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/lib/public/Files/SimpleFS/InMemoryFile.php b/lib/public/Files/SimpleFS/InMemoryFile.php index 6020b42d953..4606fe9bd8a 100644 --- a/lib/public/Files/SimpleFS/InMemoryFile.php +++ b/lib/public/Files/SimpleFS/InMemoryFile.php @@ -127,6 +127,13 @@ class InMemoryFile implements ISimpleFile { } /** + * {@inheritDoc} + */ + public function getExtension(): string { + return \pathinfo($this->name, PATHINFO_EXTENSION); + } + + /** * Stream reading is unsupported for in memory files. * * @throws NotPermittedException |