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

Add imports to Ftp settings sample, actually run listFiles #1812

Merged
merged 1 commit into from
Jul 4, 2019
Merged

Conversation

raboof
Copy link
Member

@raboof raboof commented Jul 4, 2019

No description provided.

@raboof raboof closed this Jul 4, 2019
@raboof raboof reopened this Jul 4, 2019
throws Exception {
return Ftp.ls(basePath, settings);
Ftp.ls(basePath, settings)
.runForeach(ftpFile -> System.out.println(ftpFile.toString()), materializer);
Copy link
Member Author

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.

Copy link
Member

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...

Copy link
Member

@ennru ennru left a 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);
Copy link
Member

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...

@ennru ennru merged commit a0b9bd3 into master Jul 4, 2019
@ennru ennru deleted the ftpImports branch July 4, 2019 15:54
@ennru ennru added this to the 1.1.1 milestone Jul 4, 2019
cheleb pushed a commit to cheleb/alpakka that referenced this pull request Jul 5, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants