We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 484183a commit d32f369Copy full SHA for d32f369
app/lib/FileScanner.cpp
@@ -39,7 +39,7 @@ FileScanner::get_directory_entries(const std::string &directory_path,
39
40
bool FileScanner::is_file_hidden(const fs::path &path) {
41
#ifdef _WIN32
42
- DWORD attrs = GetFileAttributes(path.c_str());
+ DWORD attrs = GetFileAttributesW(path.c_str());
43
return (attrs != INVALID_FILE_ATTRIBUTES) && (attrs & FILE_ATTRIBUTE_HIDDEN);
44
#endif
45
return path.string().starts_with(".");
0 commit comments