SilverStripe\Assets\File::updateFilesystem
This will check if the parent record and/or name do not match the name on the underlying DBFile record, and if so, copy this file to the new location, and update the record to point to this new file.
This method will update the File field value on success, so it must be called before writing to the database
Signature
public function updateFilesystem()
Returns
- bool
- True if changed