Uploaded image for project: 'YADE - Yet Another Data Exchange Tool'
  1. YADE - Yet Another Data Exchange Tool
  2. YADE-365

For Move operation YADE should delete sub directories from the source_dir if parameter remove_sub_dirs=true

    XMLWordPrintable

Details

    • Feature
    • Status: Deferred (View Workflow)
    • Minor
    • Resolution: Unresolved
    • 1.8.3, 1.9.5, 1.10
    • None
    • YADE Client
    • 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

      Attachments

        Activity

          People

            oh Oliver Haufe
            mp Mahendra Patidar
            Mahendra Patidar Mahendra Patidar
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated: