mirror of
https://github.com/haiwen/seafile-server.git
synced 2025-09-01 15:36:37 +00:00
File names in json format (#559)
This commit is contained in:
@@ -2834,19 +2834,11 @@ seafile_copy_file (const char *src_repo_id,
|
||||
rsrc_dir = format_dir_path (norm_src_dir);
|
||||
rdst_dir = format_dir_path (norm_dst_dir);
|
||||
|
||||
if (strchr(norm_src_filename, '\t') && strchr(norm_dst_filename, '\t'))
|
||||
ret = (GObject *)seaf_repo_manager_copy_multiple_files (seaf->repo_mgr,
|
||||
src_repo_id, rsrc_dir, norm_src_filename,
|
||||
dst_repo_id, rdst_dir, norm_dst_filename,
|
||||
user, need_progress, synchronous,
|
||||
error);
|
||||
|
||||
else
|
||||
ret = (GObject *)seaf_repo_manager_copy_file (seaf->repo_mgr,
|
||||
src_repo_id, rsrc_dir, norm_src_filename,
|
||||
dst_repo_id, rdst_dir, norm_dst_filename,
|
||||
user, need_progress, synchronous,
|
||||
error);
|
||||
ret = (GObject *)seaf_repo_manager_copy_multiple_files (seaf->repo_mgr,
|
||||
src_repo_id, rsrc_dir, norm_src_filename,
|
||||
dst_repo_id, rdst_dir, norm_dst_filename,
|
||||
user, need_progress, synchronous,
|
||||
error);
|
||||
|
||||
out:
|
||||
g_free (norm_src_dir);
|
||||
@@ -2919,18 +2911,11 @@ seafile_move_file (const char *src_repo_id,
|
||||
rsrc_dir = format_dir_path (norm_src_dir);
|
||||
rdst_dir = format_dir_path (norm_dst_dir);
|
||||
|
||||
if (strchr(norm_src_filename, '\t') && strchr(norm_dst_filename, '\t'))
|
||||
ret = (GObject *)seaf_repo_manager_move_multiple_files (seaf->repo_mgr,
|
||||
src_repo_id, rsrc_dir, norm_src_filename,
|
||||
dst_repo_id, rdst_dir, norm_dst_filename,
|
||||
replace, user, need_progress, synchronous,
|
||||
error);
|
||||
else
|
||||
ret = (GObject *)seaf_repo_manager_move_file (seaf->repo_mgr,
|
||||
src_repo_id, rsrc_dir, norm_src_filename,
|
||||
dst_repo_id, rdst_dir, norm_dst_filename,
|
||||
replace, user, need_progress, synchronous,
|
||||
error);
|
||||
ret = (GObject *)seaf_repo_manager_move_multiple_files (seaf->repo_mgr,
|
||||
src_repo_id, rsrc_dir, norm_src_filename,
|
||||
dst_repo_id, rdst_dir, norm_dst_filename,
|
||||
replace, user, need_progress, synchronous,
|
||||
error);
|
||||
|
||||
out:
|
||||
g_free (norm_src_dir);
|
||||
|
Reference in New Issue
Block a user