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

Creating directories during Add commands are synchronous #74

Open
Confidenceman02 opened this issue Mar 20, 2024 · 0 comments
Open

Creating directories during Add commands are synchronous #74

Confidenceman02 opened this issue Mar 20, 2024 · 0 comments

Comments

@Confidenceman02
Copy link
Owner

Confidenceman02 commented Mar 20, 2024

The code for creating directories is synchronous and pretty ugly.

Having an async method would be far better as we could handle and check the operation completed successfully in a more concise fashion.

We could create a Result monad for directory creation effects.

Resources:

The mighty Arjan has a cool video on how to test it: https://www.youtube.com/watch?v=n1nqgMtWRwg

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant