-
-
Notifications
You must be signed in to change notification settings - Fork 390
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
feat: allow creating parent directories for a file store #3526
Conversation
mkdir parents True
@all-contributors please add @Murtagy |
I couldn't determine any contributions to add, did you specify any contributions? |
Codecov ReportAll modified and coverable lines are covered by tests ✅
Additional details and impacted files@@ Coverage Diff @@
## main #3526 +/- ##
=======================================
Coverage 98.27% 98.27%
=======================================
Files 328 328
Lines 14819 14824 +5
Branches 2361 2362 +1
=======================================
+ Hits 14564 14569 +5
Misses 116 116
Partials 139 139 ☔ View full report in Codecov by Sentry. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks @Murtagy for the PR :)
In general we can add this but:
- It should be configurable
- It should happen once during store startup, in the store's
__aenter__
|
You just need one flag |
@provinzkraut (and/or others 😄), did this change in correct direction? |
Co-authored-by: Jacob Coffee <[email protected]>
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks good @Murtagy, just one more thing I'm afraid :)
I'd prefer if we change the naming from "folders" to "directories". This is the more commonly used term and is also used throughout Litestar.
…itestar-org#3527) * Convert controllers to routers on registration
* chore(docs): updated example for flash messages * chore: remove redundant store config
Co-authored-by: Jacob Coffee <[email protected]> rm underscore fix/already-async .
|
I think I have addressed all the comments and successfully restarted tests via merging master. |
Documentation preview will be available shortly at https://litestar-org.github.io/litestar-docs-preview/3526 |
--------- Co-authored-by: Maksim R <[email protected]> Co-authored-by: Jacob Coffee <[email protected]> Co-authored-by: Janek Nouvertné <[email protected]> Co-authored-by: Cody Fincher <[email protected]> Co-authored-by: euri10 <[email protected]>
Description
Allow mkdir True when creating a file store.
Use case is rather small - initially deploying an application with FileStores used.