1
0
mirror of https://github.com/haiwen/seafile-server.git synced 2025-08-31 15:11:08 +00:00

File names in json format (#559)

This commit is contained in:
feiniks
2022-06-16 12:36:34 +08:00
committed by GitHub
parent 881c270aa8
commit 0db03851a0
6 changed files with 245 additions and 373 deletions

View File

@@ -98,10 +98,10 @@ def write_file(file_path, file_content):
fp.close()
def del_repo_files(repo_id):
api.del_file(repo_id, '/', file_name, USER)
api.del_file(repo_id, '/', file_name_not_replaced, USER)
api.del_file(repo_id, '/', 'subdir', USER)
api.del_file(repo_id, '/', resumable_file_name, USER)
api.del_file(repo_id, '/', '[\"'+file_name+'\"]', USER)
api.del_file(repo_id, '/', '[\"'+file_name_not_replaced+'\"]', USER)
api.del_file(repo_id, '/', '[\"subdir\"]', USER)
api.del_file(repo_id, '/', '[\"'+resumable_file_name+'\"]', USER)
def del_local_files():
os.remove(file_path)