mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2024-11-22 23:50:19 +00:00
LibCore: Add documents_directory() to StandardPaths
This commit is contained in:
parent
72c0414a58
commit
bd66453e8d
Notes:
sideshowbarker
2024-07-17 20:19:08 +09:00
Author: https://github.com/thankyouverycool Commit: https://github.com/SerenityOS/serenity/commit/bd66453e8d Pull-request: https://github.com/SerenityOS/serenity/pull/15329 Reviewed-by: https://github.com/alimpfard
2 changed files with 9 additions and 0 deletions
|
@ -33,6 +33,14 @@ String StandardPaths::desktop_directory()
|
|||
return LexicalPath::canonicalized_path(builder.to_string());
|
||||
}
|
||||
|
||||
String StandardPaths::documents_directory()
|
||||
{
|
||||
StringBuilder builder;
|
||||
builder.append(home_directory());
|
||||
builder.append("/Documents"sv);
|
||||
return LexicalPath::canonicalized_path(builder.to_string());
|
||||
}
|
||||
|
||||
String StandardPaths::downloads_directory()
|
||||
{
|
||||
StringBuilder builder;
|
||||
|
|
|
@ -14,6 +14,7 @@ class StandardPaths {
|
|||
public:
|
||||
static String home_directory();
|
||||
static String desktop_directory();
|
||||
static String documents_directory();
|
||||
static String downloads_directory();
|
||||
static String tempfile_directory();
|
||||
static String config_directory();
|
||||
|
|
Loading…
Reference in a new issue