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

separate data model from presentation #20

Open
epogrebnyak opened this issue Mar 5, 2024 · 2 comments
Open

separate data model from presentation #20

epogrebnyak opened this issue Mar 5, 2024 · 2 comments
Labels
wontfix This will not be worked on

Comments

@epogrebnyak
Copy link
Owner

Directory (original, resolved after symlink, and abspath) + Status(not a directory, dies not exist)

Count works on top of Directory + Status

Should make JSON dump of a data structure

epogrebnyak added a commit that referenced this issue Mar 5, 2024
epogrebnyak added a commit that referenced this issue Mar 6, 2024
@epogrebnyak
Copy link
Owner Author

Implemented Directory:

@dataclass
class Directory:
original: str
canonical: str
resolved: str
is_directory: bool
does_exist: bool

  • Status - maybe it is too much sugar
  • make JSON dump a data structure

@epogrebnyak epogrebnyak changed the title New data model separate data model from presentation Mar 17, 2024
@epogrebnyak
Copy link
Owner Author

overall we may achive the folder structure becomes a JSON and presentation in CLI workd on that data, can save sample JSONs (eg with non-latin characters) to file and read from file for testing

@epogrebnyak epogrebnyak added the wontfix This will not be worked on label Mar 17, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
wontfix This will not be worked on
Projects
None yet
Development

No branches or pull requests

1 participant