setMetadata()
setMetadata(string $key, array $content) : void
Sets metadata for the specified file (or key).
This method allows setting an array of metadata information for a specific file in the filesystem. The metadata could include custom information like timestamps, file ownership, or any other descriptive data.
Parameters
string | $key | The file key for which the metadata is being set. |
array | $content | An associative array containing the metadata to set. |