-
Notifications
You must be signed in to change notification settings - Fork 645
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
Add imports to Ftp settings sample, actually run listFiles #1812
Conversation
throws Exception { | ||
return Ftp.ls(basePath, settings); | ||
Ftp.ls(basePath, settings) | ||
.runForeach(ftpFile -> System.out.println(ftpFile.toString()), materializer); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Not quite sure about this one: on the one hand it is nice to show in the example that this produces a source of FtpFile
, on the other hand I think it is good to show actually running the stream, not just creating it, especially in 'early' examples.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I agree. The FTP examples are from the early days of Alpakka...
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM.
throws Exception { | ||
return Ftp.ls(basePath, settings); | ||
Ftp.ls(basePath, settings) | ||
.runForeach(ftpFile -> System.out.println(ftpFile.toString()), materializer); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I agree. The FTP examples are from the early days of Alpakka...
No description provided.