use stat instead of attributes

This commit is contained in:
Robin Appelman 2023-10-19 16:33:59 +02:00
commit 89082b2b29
3 changed files with 16 additions and 28 deletions

View file

@ -116,6 +116,13 @@ class NativeShare extends AbstractShare {
return $info;
}
/**
* @return array{"mode": int, "size": int, "mtime": int}
*/
public function rawStat(string $path): array {
return $this->getState()->stat($this->buildUrl($path));
}
/**
* Multibyte unicode safe version of basename()
*