18859108815 opened a new issue, #8590: URL: https://github.com/apache/seatunnel/issues/8590
### Search before asking - [x] I had searched in the [feature](https://github.com/apache/seatunnel/issues?q=is%3Aissue+label%3A%22Feature%22) and found no similar feature requirement. ### Description is sftpfile and ftpfile source connectors can add deletePolicy,flume has the feature. The description is "When to delete completed files: never or immediate". [https://flume.apache.org/releases/content/1.11.0/FlumeUserGuide.html](url) By the way, if the sftpfile/ftpfile source connector has parititoned by date, and the path type “/path/yyyyMMdd/filename.csv”, for example "/path/20250120/filename.csv" and "/path/20250124/filename.csv", when source connector has collected the data in "/path/20250120/filename.csv" and deletePolicy has been set as immediate, it will delete both the file "filename.csv" and the directory“20250120”. ### Usage Scenario _No response_ ### Related issues _No response_ ### Are you willing to submit a PR? - [ ] Yes I am willing to submit a PR! ### Code of Conduct - [x] I agree to follow this project's [Code of Conduct](https://www.apache.org/foundation/policies/conduct) -- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. To unsubscribe, e-mail: commits-unsubscr...@seatunnel.apache.org.apache.org For queries about this service, please contact Infrastructure at: us...@infra.apache.org