Michael Jensen Garde created CAMEL-15540:
--------------------------------------------

             Summary: SFTP as producer with options delete=true and 
recursive=true should also delete directories
                 Key: CAMEL-15540
                 URL: https://issues.apache.org/jira/browse/CAMEL-15540
             Project: Camel
          Issue Type: Improvement
          Components: camel-ftp, camel-sftp
            Reporter: Michael Jensen Garde


I made a small route

 
{code:java}
from("sftp://...";).to("ftp://...";)
{code}
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.

 



--
This message was sent by Atlassian Jira
(v8.3.4#803005)

Reply via email to