Skip to content

Commit

Permalink
[api2] Fix rename dir error
Browse files Browse the repository at this point in the history
  • Loading branch information
xiez committed Apr 15, 2015
1 parent 567239e commit a2458ed
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions seahub/api2/views.py
Original file line number Diff line number Diff line change
Expand Up @@ -1787,6 +1787,7 @@ def post(self, request, repo_id, format=None):
return api_error(status.HTTP_403_FORBIDDEN,
'You do not have permission to rename a folder.')

parent_dir = os.path.dirname(path)
old_dir_name = os.path.basename(path)

newname = request.POST.get('newname', '')
Expand Down

0 comments on commit a2458ed

Please sign in to comment.