I would like to create a plugin/function to move all unused assets (which are not related to a entry) to a specific folder in the same assets source. Now i try to create the function to move a single file by referring the id of the file. But i get always errors... The function should look like this:
public function moveFileToFolder($fileId,$idOfTargetFolder,$assetSourceId) {
....
}
Thanks for any help!