SilverStripe\Assets\Flysystem\FlysystemAssetStore::applyToFileOnFilesystem
Generic method to apply an action to a file regardless of what FileSystem it's on. The action to perform should be provided as a closure expecting the following signature: ``` function(ParsedFileID $parsedFileID, FileSystem $fs, FileResolutionStrategy $strategy, $visibility) ```
`applyToFileOnFilesystem` will try to following steps and call the closure if they are succesfull: 1. Look for the file on the public filesystem using the explicit fileID provided. 2. Look for the file on the protected filesystem using the explicit fileID provided. 3. Look for the file on the public filesystem using the public resolution strategy. 4. Look for the file on the protected filesystem using the protected resolution strategy. If the closure returns `false`, `applyToFileOnFilesystem` will carry on and try the follow up steps. Any other value the closure returns (including `null`) will be returned to the calling function.
Signature
private function applyToFileOnFilesystem(callable
$callable,
ParsedFileID
$parsedFileID,
[boolean
$strictHashCheck = true] )
Parameters
Returns
- mixed