summaryrefslogtreecommitdiffstats
path: root/apps/files/ajax/move.php
diff options
context:
space:
mode:
Diffstat (limited to 'apps/files/ajax/move.php')
-rw-r--r--apps/files/ajax/move.php4
1 files changed, 2 insertions, 2 deletions
diff --git a/apps/files/ajax/move.php b/apps/files/ajax/move.php
index 99e43ed23be..78ed218c136 100644
--- a/apps/files/ajax/move.php
+++ b/apps/files/ajax/move.php
@@ -17,8 +17,8 @@ if(\OC\Files\Filesystem::file_exists($target . '/' . $file)) {
}
if ($dir != '' || $file != 'Shared') {
- $targetFile = \OC\Files\Filesystem::normalizePath($dir . '/' . $file);
- $sourceFile = \OC\Files\Filesystem::normalizePath($target . '/' . $file);
+ $targetFile = \OC\Files\Filesystem::normalizePath($target . '/' . $file);
+ $sourceFile = \OC\Files\Filesystem::normalizePath($dir . '/' . $file);
if(\OC\Files\Filesystem::rename($sourceFile, $targetFile)) {
OCP\JSON::success(array("data" => array( "dir" => $dir, "files" => $file )));
} else {