mirror of
https://github.com/GothenburgBitFactory/timewarrior.git
synced 2025-07-07 20:06:39 +02:00
init: Createѕ ~/.timewarrior/extensions
This commit is contained in:
parent
d8befa209e
commit
362379ffd7
1 changed files with 6 additions and 0 deletions
|
@ -80,6 +80,12 @@ void initializeData (Configuration& configuration, Database& database)
|
|||
shinyNewDatabase = true;
|
||||
}
|
||||
|
||||
// Create extensions subdirectory if necessary.
|
||||
Directory extensions (dbLocation);
|
||||
extensions += "extensions";
|
||||
if (! extensions.exists ())
|
||||
extensions.create (0700);
|
||||
|
||||
// If dbLocation exists, but is not readable/writable/executable, error.
|
||||
if (dbLocation.exists () &&
|
||||
(! dbLocation.readable () ||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue