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

    • Improvement
    • Status: Resolved
    • Minor
    • Resolution: Won't Fix
    • None
    • None
    • camel-ftp, camel-sftp
    • None
    • 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

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

            Dates

              Created:
              Updated:
              Resolved: