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

fixes #32 implement hard linking to artifacts if desired #33

Merged
merged 4 commits into from
Aug 25, 2020
Merged

fixes #32 implement hard linking to artifacts if desired #33

merged 4 commits into from
Aug 25, 2020

Conversation

richpsharp
Copy link
Collaborator

Adds functionality to allow hardlinking a file in the case when an artifact can otherwise be copied. This PR adds this functionality through an optional hardlink_allowed parameter that defaults to False. Not all OSes may handle hardlinks, so this is guarded and uses a traditional file copy in case of failure... hence the "allowed" vernacular on the parameter name.

@richpsharp richpsharp linked an issue Aug 21, 2020 that may be closed by this pull request
@richpsharp richpsharp changed the title fixes #32 implementing hard linking to artifacts if desired fixes #32 implement hard linking to artifacts if desired Aug 21, 2020
phargogh
phargogh previously approved these changes Aug 25, 2020
Copy link
Member

@phargogh phargogh left a comment

Choose a reason for hiding this comment

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

Looks great to me! Hard linking is a nice feature to add.

Copy link
Member

@phargogh phargogh left a comment

Choose a reason for hiding this comment

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

I just resolved the trivial merge conflicts and re-ran the tests. Looks like it's all working!

@phargogh phargogh merged commit 5728df3 into natcap:main Aug 25, 2020
@richpsharp richpsharp deleted the feature/hardlink-artifacts-32 branch August 25, 2020 21:49
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.

Allow hardlinks when copying artifacts
2 participants