-
Notifications
You must be signed in to change notification settings - Fork 621
feat(services/ftp): Setup integration tests #648
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
Conversation
Signed-off-by: Xuanwo <[email protected]>
I have set up integration tests in this PR in action Since you have been granted the |
OpenDAL requires all dir must end with |
Also maybe we need In my previous code, I cannot directly pass |
I got it. I think we don't need pub enum State {
Reading(Option<FtpStream>),
Finalize(BoxFuture<'static, Result<()>>),
} let ft = ft.replace(None);
let fut = async move {
ft.read_response_in()
xxxx
}
state = Box::pin(fut); For example, you can take a look at: |
Branch coverage. "src/services/ftp/dir_stream.rs": Append a '/' to the end of name if a Dir entry is return. "src/services/ftp/util.rs": Consume FtpStream once we hit Error or EOF.
Fix create() function, it would now create corresponding directories if not exist.
…ction. Delete will return success even if the file does not exist.
All failures are sovled execpt one about |
, it will first "list" the parent dir and then get the information of directory from a vector of results. If arg path points to a file, it will directly "list" the path given by arg.
We can always return ObjectMode::DIR for root dir. Other metadata can leave as empty. |
Thanks for your hard-working! We can release FTP support for the next release now! |
Signed-off-by: Xuanwo [email protected]
I hereby agree to the terms of the CLA available at: https://databend.rs/dev/policies/cla/
Summary
Fix #626