Add API for setting metadata on remote files
The current API for external files has support for retrieving metadata (size, modification date, etc.) about remote files by asking the remote server for the information. This may take some time if the number of files is large.
In some cases we already know this information by other means (for example, when exporting/importing from another server). It would be nice if it was possible to set the metadata directly via some API method.