mirror of
https://github.com/haiwen/seahub.git
synced 2025-09-08 02:10:24 +00:00
Modified wiki, slugified page link, ignored case when parsing page link.
This commit is contained in:
10
utils/repo.py
Normal file
10
utils/repo.py
Normal file
@@ -0,0 +1,10 @@
|
||||
# -*- 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)
|
||||
|
Reference in New Issue
Block a user