-
Notifications
You must be signed in to change notification settings - Fork 2k
Database parental directories creation if not exist #4327
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
Changes from 10 commits
9917f2a
b07b0e2
c67245e
d3d9318
879ed7f
c0d05f8
9029a8a
a0b0028
67e778f
2886296
b609cae
fa5862d
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change | ||||
|---|---|---|---|---|---|---|
|
|
@@ -1398,6 +1398,16 @@ def show_version(lib, opts, args): | |||||
| version_cmd.func = show_version | ||||||
| default_commands.append(version_cmd) | ||||||
|
|
||||||
| # database_location: return true if user | ||||||
| # wants to create the parent directories. | ||||||
|
|
||||||
|
||||||
|
|
||||||
| def database_dir_creation(path): | ||||||
| # Ask the user for a choice. | ||||||
| return ui.input_yn("The database directory {} does not \ | ||||||
| exists, create it (Y/n)?" | ||||||
|
||||||
| exists, create it (Y/n)?" | |
| exists. Create it (Y/n)?" |
So it's two full sentences.
| Original file line number | Diff line number | Diff line change | ||||||
|---|---|---|---|---|---|---|---|---|
|
|
@@ -7,6 +7,7 @@ Changelog | |||||||
| Changelog goes here! | ||||||||
|
|
||||||||
| New features: | ||||||||
| * Create the parental directories for database if they do not exist. | ||||||||
|
|
||||||||
|
||||||||
| * Create the parental directories for database if they do not exist. | |
| * Create the parental directories for database if they do not exist. | |
| :bug:`3808` :bug:`4327` |
Including references to where this was discussed.
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -142,7 +142,8 @@ place to start:: | |
|
|
||
| Change that first path to a directory where you'd like to keep your music. Then, | ||
| for ``library``, choose a good place to keep a database file that keeps an index | ||
| of your music. (The config's format is `YAML`_. You'll want to configure your | ||
| of your music. Beets will prompt you if the parental directories for database do | ||
| not exist. (The config's format is `YAML`_. You'll want to configure your | ||
|
||
| text editor to use spaces, not real tabs, for indentation. Also, ``~`` means | ||
| your home directory in these paths, even on Windows.) | ||
|
|
||
|
|
||
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.
Maybe should be called
_ensure_db_directory_existssince it does more than just check?