Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Feature][connector-v2] Support file path with wildcard for source connectors like SFTP/FTP #5098

Closed
2 of 3 tasks
voyagertanyao opened this issue Jul 17, 2023 · 6 comments
Closed
2 of 3 tasks

Comments

@voyagertanyao
Copy link

Search before asking

  • I had searched in the feature and found no similar feature requirement.

Description

Seatunnel source connector sftp/ftp ,file path do not support wildcard format , e.g /dir1/dir2/.csv. /dir1/prifix_.txt

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

@FlechazoW
Copy link
Contributor

Can you provide more detail?

@voyagertanyao
Copy link
Author

voyagertanyao commented Jul 21, 2023

Can you provide more detail?

like this:
NOW, for sftp/ftp source, the config parameter "path" can only be a single file or a directory, e.g.
A: path = "/tmp/user/2023-07-21/"
B: path = "/tmp/user/upload/00000_0.csv"
scene A, we can get all files under path "/tmp/user/2023-07-21/",
scene B, we can get this csv file only under path "/tmp/user/upload/00000_0.csv"

BUT, when I want to get files with format csv(whatever) under a directory, e.g.
image
I can not config the path parameter like : path = "/tmp/user/2023-07-21/*.csv"
this will lead to error , no such file found xxxxxx

THIS Idea comes from this scene: I just want to get part of files under a certain directory, not all

@FlechazoW
Copy link
Contributor

I got it. I'll follow this issue. Please assign to me.

@chenhaonan313
Copy link

I'm also looking for a way to do this scene

@FlechazoW
Copy link
Contributor

PR merged.

@voyagertanyao
Copy link
Author

PR merged.

Thanks So much

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants