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

File class improvements #97

Merged
merged 6 commits into from
Jul 28, 2022
Merged

File class improvements #97

merged 6 commits into from
Jul 28, 2022

Conversation

x00Pavel
Copy link
Member

Changes in File class bring to general File several new/updates old methods:

  • get tries to get the value from the file using section (if set), key and separator (by default separator is =)
  • set add a separator to the general File method
  • backup simple backup of the file
  • restore simple restore method - copy backup file to the original place.

@x00Pavel x00Pavel added the enhancement New feature or request label Jul 25, 2022
@x00Pavel x00Pavel requested a review from mahavrila July 25, 2022 11:07
@x00Pavel x00Pavel self-assigned this Jul 25, 2022
SCAutolib/models/file.py Outdated Show resolved Hide resolved
SCAutolib/models/file.py Outdated Show resolved Hide resolved
SCAutolib/models/file.py Outdated Show resolved Hide resolved
@x00Pavel x00Pavel requested a review from mahavrila July 25, 2022 15:19
SCAutolib/models/file.py Outdated Show resolved Hide resolved
SCAutolib/models/file.py Outdated Show resolved Hide resolved
SCAutolib/models/file.py Outdated Show resolved Hide resolved
SCAutolib/models/file.py Outdated Show resolved Hide resolved
SCAutolib/models/file.py Outdated Show resolved Hide resolved
@x00Pavel x00Pavel requested a review from mahavrila July 27, 2022 11:52
Copy link
Collaborator

@mahavrila mahavrila left a comment

Choose a reason for hiding this comment

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

Looks better. Approved.

SCAutolib/models/file.py Outdated Show resolved Hide resolved
@x00Pavel x00Pavel merged commit 71ee13b into V2 Jul 28, 2022
@x00Pavel x00Pavel deleted the V2-File-model-improvements branch July 28, 2022 10:55
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants