Closed danlabici closed 5 years ago
I have started to work on this Issue locally. Will send parts of the code for reviews as mini-PRs.
For the check that we have the rights to write to a file I have created two new methods is_readable()
and is_writable()
and added them to the FileHandler in PR https://github.com/mozilla-releng/firefox-infra-changelog/pull/426
I was also thinking how we can approach the ability to write to temp files and if the tool runs everything successfully, move them to the proper locations.
That should be just a matter of renaming the files and the os library gives us os.rename()
method.
I will implement it and add it to the current PR.
Everything except the write temp files
was been done, closing this Issue and the missing step, which is LOW Priority, can have its own dedicated issue.
Overview As we wish FileHandler to hold all the logic for when we need to implement a bunch of new functionality, when compared to the old FIC codebase, as listed below:
Functionality:
.py
<- If missing, download latest version from GitHub.md
files under1mb