fs::file_copy (public)

 fs::file_copy -file_id file_id -target_folder_id target_folder_id \
    [ -postfix postfix ] [ -symlink ]

Defined in packages/file-storage/tcl/file-storage-procs.tcl

copy file to target folder

Switches:
-file_id (required)
Item_id of the file to be copied
-target_folder_id (required)
Folder ID of the folder to which the file is copied to
-postfix (optional)
Postfix will be added with "_" to the new filename (not title). Very useful if you want to avoid unique name constraints on cr_items.
-symlink (optional, boolean)
Defines if, instead of a full item, we should just add a symlink.

Partial Call Graph (max 5 caller/called nodes):
%3 test_fs_add_delete_copy fs_add_delete_copy (test file-storage) fs::file_copy fs::file_copy test_fs_add_delete_copy->fs::file_copy ad_conn ad_conn (public) fs::file_copy->ad_conn ad_file ad_file (public) fs::file_copy->ad_file content::item::get_id_by_name content::item::get_id_by_name (public) fs::file_copy->content::item::get_id_by_name content::item::new content::item::new (public) fs::file_copy->content::item::new content::item::set_live_revision content::item::set_live_revision (public) fs::file_copy->content::item::set_live_revision

Testcases:
fs_add_delete_copy
[ show source ]
Show another procedure: