- Issue created by @daffie
- π¦πΊAustralia kim.pepper πββοΈπ¦πΊSydney, Australia
We already have a
Drupal\file\FileRepository
class/service which is much more about manipulating file entities. e.g.writeData(string $data, string $destination, int $replace = FileSystemInterface::EXISTS_RENAME): FileInterface;
copy(FileInterface $source, string $destination, int $replace = FileSystemInterface::EXISTS_RENAME): FileInterface;
move(FileInterface $source, string $destination, int $replace = FileSystemInterface::EXISTS_RENAME): FileInterface;
loadByUri(string $uri): ?FileInterface;
Not sure if it is the right place to add
public function spaceUsed()
there.