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

[BEAM-59] LocalResources: helper utility to create LocalResourceId #2751

Closed
wants to merge 2 commits into from

Conversation

dhalperi
Copy link
Contributor

Primarily for testing.

R: @vikkyrk

Copy link
Contributor

@vikkyrk vikkyrk left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

public final class LocalResources {

public static ResourceId fromFile(File file, boolean isDirectory) {
return LocalResourceId.fromPath(Paths.get(file.getPath()), isDirectory);
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

file.toPath()

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

remind me the difference?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Got it. Thanks.

@asfgit asfgit closed this in f71395b Apr 27, 2017
@dhalperi dhalperi deleted the local-resources branch April 27, 2017 23:31
@coveralls
Copy link

Coverage Status

Changes Unknown when pulling fd11e39 on dhalperi:local-resources into ** on apache:master**.

@coveralls
Copy link

Coverage Status

Coverage decreased (-0.0006%) to 69.676% when pulling fd11e39 on dhalperi:local-resources into a46eb1a on apache:master.

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

Successfully merging this pull request may close these issues.

None yet

3 participants