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:
1
utils.py
1
utils.py
@@ -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'))
|
||||
|
||||
|
Reference in New Issue
Block a user