F diff --git a/php/move.php b/php/move.php --- a/php/move.php +++ b/php/move.php}// Check if the filename is taken in the new dir- $contents_of_new_dir = $database->get_links_of($new_dir);+ $contents_of_new_dir = $database->get_links_of($new_dir,$user->user_id);foreach ($contents_of_new_dir as $c) {if ($c['name'] == $new_filename) {error_log("filename $new_filename taken in $new_folder");// Get the file node$file_node = null;- $contents_of_old_dir = $database->get_links_of($old_dir);+ $contents_of_old_dir = $database->get_links_of($old_dir,$user->user_id);foreach ($contents_of_old_dir as $c) {if ($c['name'] == $old_filename) {$file_node = $c['id'];F diff --git a/php/rename.php b/php/rename.php --- a/php/rename.php +++ b/php/rename.php}// Check if the new filename is taken in the new dir- $contents_of_dir = $database->get_links_of($dir);+ $contents_of_dir = $database->get_links_of($dir,$user->user_id);foreach ($contents_of_dir as $c) {if ($c['name'] == $new_filename) {error_log("/php/rename.php failed - filename $filename taken in $new_folder");// Get the file node$file_node = null;- $contents_of_old_dir = $database->get_links_of($dir);+ $contents_of_old_dir = $database->get_links_of($dir,$user->user_id);foreach ($contents_of_old_dir as $c) {if ($c['name'] == $old_filename) {$file_node = $c['id'];