Skip to content

Commit

Permalink
fix: 修复自定义日志配置,无法读取隐藏文件的内容 (#118)
Browse files Browse the repository at this point in the history
Description: 增加读取隐藏文件

Log: 修复自定义日志配置,无法读取隐藏文件的内容
Bug: https://pms.uniontech.com/bug-view-183041.html
  • Loading branch information
lichunlong111 authored Jan 12, 2023
1 parent 13ac291 commit 50a3e23
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion logViewerService/logviewerservice.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -229,7 +229,7 @@ QStringList LogViewerService::getOtherFileInfo(const QString &file, bool unzip)
dir.setPath(file);
}

dir.setFilter(QDir::Files | QDir::NoSymLinks); //实现对文件的过滤
dir.setFilter(QDir::Files | QDir::NoSymLinks | QDir::Hidden); //实现对文件的过滤
dir.setSorting(QDir::Time);
fileList = dir.entryInfoList();

Expand Down

0 comments on commit 50a3e23

Please sign in to comment.