Details
-
Feature
-
Status: Deferred (View Workflow)
-
Minor
-
Resolution: Unresolved
-
1.8.3, 1.9.5, 1.10
-
None
-
None
Description
Current Situation
- As of now BY DESIGN for operation=move and recursive=true YADE moves the files but keeps empty sub directories
- YADE Profile
[MoveRemoteSFTP2LocalhostRecursive] file_spec = ^rgp.*\.txt$ operation = move recursive = true ;; source_host = homer.sos source_protocol = sftp source_port = 22 source_user = test source_ssh_auth_method = publickey source_ssh_auth_file = ${HOME}/.ssh/id_rsa source_dir = ${HOME}/data/from_homer/rgp ;; target_dir = ${HOME}/data/to_galadriel target_host = localhost target_protocol = local
- Before JADE move operation
test@homer:~/data/from_homer/__rgp> ls -lrt * +--> c/rgp300.txt +--> b/rgp200.txt +--> a/rgp100.txt
- After JADE move operation
test@homer:~/data/from_homer/__rgp> ls -lrt * +--> c/ +--> b/ +--> a/
Desired Behavior
- YADE should have a new parameter e.g. remove_sub_dirs=true/false in conjunction with operation=move
- If parameter remove_sub_dirs=true YADE should also delete the sub directories under the source_dir