LocalFileAccess
final class \
Provides a FAL file or any other system resource as a local file to text extractors, for example to hand it to an external tool.
A local storage hands out the original file, other drivers a temporary copy created via GeneralUtility::tempnam(). Other system resources, such as files of packages, are copied from their contents, so no local path of a resource has to be exposed. Only such temporary copies below var/transient/ are removed afterwards, the original file of a storage is never touched, even if the storage itself is located below the var/ folder.
Internal
Table of Contents
Methods
- withLocalFile() : T
Methods
withLocalFile()
public
static withLocalFile(FileInterface|SystemResourceInterface $resource, callable(string): T $callback) : T
Parameters
- $resource : FileInterface|SystemResourceInterface
- $callback : callable(string): T
-
receives the absolute path of the local file