1
0
mirror of https://github.com/haiwen/seahub.git synced 2025-09-16 07:08:55 +00:00

Added RESTful file/dir api

This commit is contained in:
zhengxie
2012-12-23 22:27:16 +08:00
parent 97af71f90f
commit 6c4cf35110
5 changed files with 508 additions and 134 deletions

View File

@@ -146,6 +146,7 @@ def check_filename_with_rename(repo_id, parent_dir, filename):
latest_commit = get_commits(repo_id, 0, 1)[0]
if not latest_commit:
return ''
# TODO: what if parrent_dir does not exists?
dirents = seafserv_threaded_rpc.list_dir_by_path(latest_commit.id,
parent_dir.encode('utf-8'))