aboutsummaryrefslogtreecommitdiffstats
path: root/files/ajax/rename.php
diff options
context:
space:
mode:
Diffstat (limited to 'files/ajax/rename.php')
-rw-r--r--files/ajax/rename.php21
1 files changed, 0 insertions, 21 deletions
diff --git a/files/ajax/rename.php b/files/ajax/rename.php
deleted file mode 100644
index dc5d3962abd..00000000000
--- a/files/ajax/rename.php
+++ /dev/null
@@ -1,21 +0,0 @@
-<?php
-
-// Init owncloud
-
-
-OC_JSON::checkLoggedIn();
-
-// Get data
-$dir = stripslashes($_GET["dir"]);
-$file = stripslashes($_GET["file"]);
-$newname = stripslashes($_GET["newname"]);
-
-// Delete
-if( OC_Files::move( $dir, $file, $dir, $newname )) {
- OC_JSON::success(array("data" => array( "dir" => $dir, "file" => $file, "newname" => $newname )));
-}
-else{
- OC_JSON::error(array("data" => array( "message" => "Unable to rename file" )));
-}
-
-?>