summaryrefslogtreecommitdiffstats
path: root/apps/files/ajax/newfolder.php
diff options
context:
space:
mode:
authorRobin Appelman <icewind@owncloud.com>2012-10-24 15:52:30 +0200
committerRobin Appelman <icewind@owncloud.com>2012-10-24 15:52:30 +0200
commit5a3d6805a2613c4f55daa971e112cc77f17b060f (patch)
tree38e17165b616821ac5c42ae3adb1fb7042b72e4e /apps/files/ajax/newfolder.php
parent7b150dfa963d81889b8d40bf3956795c9a712aec (diff)
downloadnextcloud-server-5a3d6805a2613c4f55daa971e112cc77f17b060f.tar.gz
nextcloud-server-5a3d6805a2613c4f55daa971e112cc77f17b060f.zip
cleanup OC_Files a bit
Diffstat (limited to 'apps/files/ajax/newfolder.php')
-rw-r--r--apps/files/ajax/newfolder.php2
1 files changed, 1 insertions, 1 deletions
diff --git a/apps/files/ajax/newfolder.php b/apps/files/ajax/newfolder.php
index 0f1f2f14eb0..c36c2084551 100644
--- a/apps/files/ajax/newfolder.php
+++ b/apps/files/ajax/newfolder.php
@@ -19,7 +19,7 @@ if(strpos($foldername, '/')!==false) {
exit();
}
-if(OC_Files::newFile($dir, stripslashes($foldername), 'dir')) {
+if(\OC\Files\Filesystem::mkdir($dir . '/' . stripslashes($foldername))) {
if ( $dir != '/') {
$path = $dir.'/'.$foldername;
} else {