Permalink
Browse files

revisions folder löschen bugfix

  • Loading branch information...
1 parent dd155a9 commit 5fd11c2036a6ea3b5830823318f50b94af716a53 Stephan committed Dec 13, 2012
Showing with 1 addition and 1 deletion.
  1. +1 −1 localeEditFileManager.js
View
@@ -95,7 +95,7 @@ exports.DeleteRevisionFolder = function(req, res) {
var folderToDelete = req.body.Foldername;
- fs.unlink(dirName + '/' + folderToDelete, function (err) {
+ fs.rmdir(dirName + '/' + folderToDelete, function (err) {
if (err) {
//ToDo Error: EISDIR, unlink '/home/stephan/workspaces/locale-js-editor/files/user_1/201211117942_backUp'
res.writeHead(200, { 'Content-Type': 'application/json' });

0 comments on commit 5fd11c2

Please sign in to comment.