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

Allow resetFileAttributes to set specific attributes. #172

Merged
merged 1 commit into from
Oct 18, 2020
Merged

Allow resetFileAttributes to set specific attributes. #172

merged 1 commit into from
Oct 18, 2020

Conversation

benmoran56
Copy link
Contributor

This change allows the resetFileAttribute method to optionally specify the file_attributes.
If no attribute is specified, then the behavior is identical to before (attributes are set to ATTR_ARCHIVE).

I was considering making a new method for this, but it seemed less bloated to just extend the existing method.
Comments welcome!

miketeo added a commit that referenced this pull request Oct 18, 2020
@miketeo
Copy link
Owner

miketeo commented Oct 18, 2020

@benmoran56 : Thank you for your patch. I'm agreeable with using the same function name for this purpose. Creating another setFileAttributes function will bloat the API unnecessarily.

@miketeo miketeo merged commit c73c350 into miketeo:master Oct 18, 2020
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

2 participants