Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
Merge pull request #12200 from itsmattkc/pipe-fifo-fix
FileUtil: Don't try to retrieve size for FIFO pipe
  • Loading branch information
AdmiralCurtiss committed Sep 28, 2023
2 parents 53df01f + e167534 commit a7c5f2f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Source/Core/Common/FileUtil.cpp
Expand Up @@ -452,7 +452,7 @@ FSTEntry ScanDirectoryTree(std::string directory, bool recursive)
auto dirent_to_fstent = [&](const fs::directory_entry& entry) {
return FSTEntry{
.isDirectory = entry.is_directory(),
.size = entry.is_directory() ? 0 : entry.file_size(),
.size = entry.is_directory() || entry.is_fifo() ? 0 : entry.file_size(),
.physicalName = path_to_physical_name(entry.path()),
.virtualName = PathToString(entry.path().filename()),
};
Expand Down

0 comments on commit a7c5f2f

Please sign in to comment.