LiJie20190102 opened a new issue, #10012: URL: https://github.com/apache/seatunnel/issues/10012
### Search before asking - [x] I had searched in the [issues](https://github.com/apache/seatunnel/issues?q=is%3Aissue+label%3A%22bug%22) and found no similar issues. ### What happened When I use 'file_filterpattern' to filter file names, it works, but when I filter directories, I find that it doesn't work ### SeaTunnel Version 2.3.11 ### SeaTunnel Config ```conf sink { FtpFile { "port "=2121 "path "="/home/ftp_test/text" "file_format_type"=text "password "="NxEOiT3w@" encoding=UTF-8 "custom_filename"=true "file_name_expression"="st1-syq.json" "user "="ftp_test" host="x.x.x.x" "connection_mode"="passive_local" "data_save_mode "="ERROR_WHEN_DATA_EXISTS" "is_enable_transaction"=false } } source { FtpFile { path="/home/ftp_test/test_json" password="NxEOiT3w@" "file_format_type"=json port=2121 "archive_compress_codec"=NONE host="x.x.x.x" "connection_mode"="passive_local" encoding=UTF-8 user="ftp_test" file_filter_pattern="/home/ftp_test/test_json/json[^/]*/.*.json" } } env { # You can set spark configuration here # see available properties defined by spark: https://spark.apache.org/docs/latest/configuration.html#available-properties #job.mode = BATCH job.name = "SeaTunnel" spark.executor.instances = 1 spark.executor.cores = 1 spark.executor.memory = "1g" spark.master = "local[2]" } ``` ### Running Command ```shell bin/start-seatunnel-spark-3-connector-v2.sh \ --master local[4] \ --deploy-mode client \ --config ./config/ftp2ftp.config ``` ### Error Exception ```log none ``` ### Zeta or Flink or Spark Version spark 3.x ### Java or Scala Version java 1.8.0_202 ### Screenshots _No response_ ### Are you willing to submit PR? - [x] 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: [email protected] For queries about this service, please contact Infrastructure at: [email protected]
