add getMimeByPath method

This commit is contained in:
ghost 2024-02-04 10:16:34 +02:00
parent 4d9ec32986
commit 82085aa8c3
2 changed files with 24 additions and 0 deletions

View file

@ -186,6 +186,18 @@ var_dump (
);
```
#### Filesystem::getMimeByPath
Return file MIME if path match storage item
```
var_dump (
$filesystem->getMimeByPath(
'/full/path/to/page.txt'
)
);
```
#### Filesystem::getDataByPath
Return file content if path match storage item