mirror of
https://github.com/RGBCube/serenity
synced 2025-05-31 11:38:11 +00:00
LibCore: Add a standard downloads directory (~/Downloads)
This commit is contained in:
parent
ae047649db
commit
76dd1e3284
3 changed files with 10 additions and 0 deletions
|
@ -53,6 +53,14 @@ String StandardPaths::desktop_directory()
|
|||
return canonicalized_path(builder.to_string());
|
||||
}
|
||||
|
||||
String StandardPaths::downloads_directory()
|
||||
{
|
||||
StringBuilder builder;
|
||||
builder.append(home_directory());
|
||||
builder.append("/Downloads");
|
||||
return canonicalized_path(builder.to_string());
|
||||
}
|
||||
|
||||
String StandardPaths::tempfile_directory()
|
||||
{
|
||||
return "/tmp";
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue