mirror of
https://github.com/haiwen/seahub.git
synced 2025-08-24 17:49:44 +00:00
11 lines
233 B
Python
11 lines
233 B
Python
|
# -*- coding: utf-8 -*-
|
||
|
import seaserv
|
||
|
from seahub.utils import EMPTY_SHA1
|
||
|
|
||
|
def list_dir_by_path(cmmt, path):
|
||
|
if cmmt.root_id == EMPTY_SHA1:
|
||
|
return []
|
||
|
else:
|
||
|
return seaserv.list_dir_by_path(cmmt.id, path)
|
||
|
|