feat: add content dir and metadata dir (#12)

Signed-off-by: Gaius <gaius.qi@gmail.com>
This commit is contained in:
Gaius 2023-04-13 12:44:11 +08:00 committed by GitHub
parent a52201e276
commit 9faecb998e
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 8 additions and 3 deletions

View File

@ -27,9 +27,14 @@ pub fn default_dfdaemon_log_dir() -> PathBuf {
default_log_dir().join("dfdaemon")
}
// default_dfdaemon_task_dir is the default tasks directory for dfdaemon.
pub fn default_dfdaemon_task_dir() -> PathBuf {
default_data_dir().join("dfdaemon").join("task")
// default_dfdaemon_content_dir is the default content directory for dfdaemon.
pub fn default_dfdaemon_content_dir() -> PathBuf {
default_data_dir().join("dfdaemon").join("content")
}
// default_dfdaemon_metadata_dir is the default metadata directory for dfdaemon.
pub fn default_dfdaemon_metadata_dir() -> PathBuf {
default_data_dir().join("dfdaemon").join("metadata")
}
// default_dfdaemon_plugin_dir is the default plugin directory for dfdaemon.