diff --git a/src/fs/FileInfo.hxx b/src/fs/FileInfo.hxx index 75696840f9..17a7b7e53b 100644 --- a/src/fs/FileInfo.hxx +++ b/src/fs/FileInfo.hxx @@ -30,7 +30,7 @@ class FileInfo { public: constexpr FileInfo() noexcept = default; - FileInfo(Path path, bool follow_symlinks=true) { + explicit FileInfo(Path path, bool follow_symlinks=true) { if (!GetFileInfo(path, *this, follow_symlinks)) { #ifdef _WIN32 throw FmtLastError("Failed to access {}", path);