diff options
author | Andreas Kling <kling@serenityos.org> | 2020-05-05 23:56:57 +0200 |
---|---|---|
committer | Andreas Kling <kling@serenityos.org> | 2020-05-05 23:56:57 +0200 |
commit | 76dd1e32847bf471aaa5a60c4ce48e868ef61138 (patch) | |
tree | 85334f66aa31da23391abbb6fe326d919148f44b /Libraries/LibCore/StandardPaths.cpp | |
parent | ae047649db575eb76274b8475eadfaee7bffc674 (diff) | |
download | serenity-76dd1e32847bf471aaa5a60c4ce48e868ef61138.zip |
LibCore: Add a standard downloads directory (~/Downloads)
Diffstat (limited to 'Libraries/LibCore/StandardPaths.cpp')
-rw-r--r-- | Libraries/LibCore/StandardPaths.cpp | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/Libraries/LibCore/StandardPaths.cpp b/Libraries/LibCore/StandardPaths.cpp index b46ab334b0..6494a1f43c 100644 --- a/Libraries/LibCore/StandardPaths.cpp +++ b/Libraries/LibCore/StandardPaths.cpp @@ -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"; |