diff options
author | Max Kellermann <max@musicpd.org> | 2018-07-17 17:01:02 +0200 |
---|---|---|
committer | Max Kellermann <max@musicpd.org> | 2018-07-17 18:33:32 +0200 |
commit | 99d5b616981107f0cb32f9bcc9e29ff92855c78a (patch) | |
tree | 5fbc013510b82fc932d4045ede572774a04edd84 /src/command/FileCommands.cxx | |
parent | 79e89eb23b554248e4b86631109ae551df6c8d48 (diff) |
fs/Path: add operator/(Path,Path)
Modeled after std::filesystem::operator/() from C++17.
Diffstat (limited to 'src/command/FileCommands.cxx')
-rw-r--r-- | src/command/FileCommands.cxx | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/src/command/FileCommands.cxx b/src/command/FileCommands.cxx index c6b54cee8..8a2167789 100644 --- a/src/command/FileCommands.cxx +++ b/src/command/FileCommands.cxx @@ -81,8 +81,7 @@ handle_listfiles_local(Response &r, Path path_fs) if (name_utf8.empty()) continue; - const AllocatedPath full_fs = - AllocatedPath::Build(path_fs, name_fs); + const auto full_fs = path_fs / name_fs; FileInfo fi; if (!GetFileInfo(full_fs, fi, false)) continue; |