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

(GH-338) Delete read only files #377

Merged
merged 6 commits into from
Sep 17, 2015

Conversation

ferventcoder
Copy link
Member

This closes #338

@ferventcoder ferventcoder changed the title [WIP - DO NOT MERGE](GH-338) WIP [WIP - DO NOT MERGE](GH-338) Delete read only files Jul 30, 2015
Ensure file attribute set is ignoring the attributes passed in and only
looking at Hidden. Fix that to use the attributes passed in.
Add the following methods to IFileSystem

- ensure_file_attribute_removed
- is_readonly_file
- is_hidden_file
- delete_directory overriding attributes
- delete_directory_if_exists overriding attributes
Enhance IFilesService to look at a package and clean up the attributes
of all files in the package. Also refactor some of the methods to use
the same install location verification.
When performing install/upgrade/uninstall, ensure that the attributes
in the package files do not cause the action to fail. Remove ReadOnly,
Hidden, and System attributes if found from any files in the package.
- DotNetFileSystem.when_setting_file_attributes_with_dotNetFileSystem
-
DotNetFileSystem.when_removing_readonly_attributes_with_dotNetFileSystem
- UpgradeScenarios.when_upgrading_a_package_with_readonly_files
- UninstallScenarios.when_uninstalling_a_package_with_readonly_files
@ferventcoder ferventcoder changed the title [WIP - DO NOT MERGE](GH-338) Delete read only files (GH-338) Delete read only files Sep 17, 2015
ferventcoder added a commit that referenced this pull request Sep 17, 2015
@ferventcoder ferventcoder merged commit ff2487d into chocolatey:stable Sep 17, 2015
@ferventcoder ferventcoder deleted the readonly branch September 17, 2015 16:57
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.

1 participant