mirror of
https://github.com/RGBCube/serenity
synced 2025-07-27 00:57:45 +00:00
LibCore: Add documents_directory() to StandardPaths
This commit is contained in:
parent
72c0414a58
commit
bd66453e8d
2 changed files with 9 additions and 0 deletions
|
@ -33,6 +33,14 @@ String StandardPaths::desktop_directory()
|
||||||
return LexicalPath::canonicalized_path(builder.to_string());
|
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()
|
String StandardPaths::downloads_directory()
|
||||||
{
|
{
|
||||||
StringBuilder builder;
|
StringBuilder builder;
|
||||||
|
|
|
@ -14,6 +14,7 @@ class StandardPaths {
|
||||||
public:
|
public:
|
||||||
static String home_directory();
|
static String home_directory();
|
||||||
static String desktop_directory();
|
static String desktop_directory();
|
||||||
|
static String documents_directory();
|
||||||
static String downloads_directory();
|
static String downloads_directory();
|
||||||
static String tempfile_directory();
|
static String tempfile_directory();
|
||||||
static String config_directory();
|
static String config_directory();
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue