예제 #1
0
파일: api.py 프로젝트: HackLinux/seafile
 def get_dirent_by_path(self, repo_id, path):
     try:
         ret = seafserv_threaded_rpc.get_dirent_by_path(repo_id, path)
     except SearpcError as e:
         if str(e).startswith(SeafileAPI.PATH_NOT_EXIST_PREFIX):
             ret = None
         else:
             raise e
     return ret
예제 #2
0
파일: api.py 프로젝트: nichtdu/seafile
 def get_dirent_by_path(self, repo_id, path):
     try:
         ret = seafserv_threaded_rpc.get_dirent_by_path(repo_id, path)
     except SearpcError as e:
         if str(e).startswith(SeafileAPI.PATH_NOT_EXIST_PREFIX):
             ret = None
         else:
             raise e
     return ret
예제 #3
0
 def get_dirent_by_path(self, repo_id, path):
     return seafserv_threaded_rpc.get_dirent_by_path(repo_id, path)
예제 #4
0
 def get_dirent_by_path(self, repo_id, path):
     """
     Return: a Dirent object (lib/dirent.vala)
     """
     return seafserv_threaded_rpc.get_dirent_by_path(repo_id, path)
예제 #5
0
파일: api.py 프로젝트: miurahr/seafile
 def get_dirent_by_path(self, repo_id, path):
     return seafserv_threaded_rpc.get_dirent_by_path(repo_id, path)
예제 #6
0
파일: api.py 프로젝트: airbai/seafile
 def get_dirent_by_path(self, repo_id, path):
     """
     Return: a Dirent object (lib/dirent.vala)
     """
     return seafserv_threaded_rpc.get_dirent_by_path(repo_id, path)