From d4ac82eef21832d242fc7c0ac661ab4b325b3ca8 Mon Sep 17 00:00:00 2001 From: georgemoralis Date: Wed, 8 Nov 2023 07:57:13 +0200 Subject: [PATCH] Update src/common/fs_file.cpp Co-authored-by: GPUCode <47210458+GPUCode@users.noreply.github.com> --- src/common/fs_file.cpp | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/src/common/fs_file.cpp b/src/common/fs_file.cpp index 980ce126..fb51309c 100644 --- a/src/common/fs_file.cpp +++ b/src/common/fs_file.cpp @@ -60,11 +60,10 @@ u64 File::tell() const { std::vector File::getDirectoryEntries(const std::string& path) { std::string curpath = path; - if (!curpath.ends_with("/")) - { + if (!curpath.ends_with("/")) { curpath = std::string(curpath + "/"); } - std::vector < DirEntry> files; + std::vector files; for (const auto& entry : std::filesystem::directory_iterator(curpath)) { if (std::filesystem::is_regular_file( entry.path().string())) {