array( "dir" => $dir, "files" => $file ))); } else { OCP\JSON::error(array("data" => array( "message" => "Could not move $file" ))); }