Uploaded image for project: 'Camel'
  1. Camel
  2. CAMEL-15540

SFTP as producer with options delete=true and recursive=true should also delete directories

    XMLWordPrintableJSON

    Details

    • Type: Improvement
    • Status: Resolved
    • Priority: Minor
    • Resolution: Won't Fix
    • Affects Version/s: None
    • Fix Version/s: None
    • Component/s: camel-ftp, camel-sftp
    • Labels:
      None
    • Estimated Complexity:
      Unknown

      Description

      I made a small route

       

      from("sftp://...").to("ftp://...")
      

      which downloads a lot of files recursively. This results in a lot of empty directories, that i have to clean up manually afterwards. In my opinion, this behavior could be improved by deleting directories, when all files within it have been downloaded.

      I acknowledge that there are some grey zones.

      • What if directories are initially empty? They should probably not get deleted, as they have not been "flagged" as having downloadable content.

      I'm just throwing a ball in the air here, because i feel the current functionality seems - inconvenient.

       

        Attachments

          Activity

            People

            • Assignee:
              Unassigned
              Reporter:
              mgarde Michael Jensen Garde
            • Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: