1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-07-26 20:37:36 +00:00

LibCore: Add documents_directory() to StandardPaths

This commit is contained in:
thankyouverycool 2022-09-23 10:34:06 -04:00 committed by Ali Mohammad Pur
parent 72c0414a58
commit bd66453e8d
2 changed files with 9 additions and 0 deletions

View file

@ -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;