Skip to content

Commit

Permalink
fix part files being marked as hidden on windows
Browse files Browse the repository at this point in the history
  • Loading branch information
arvidn committed Jan 17, 2022
1 parent 55111d2 commit 6f994e1
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
1 change: 1 addition & 0 deletions ChangeLog
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
* fix part files being marked as hidden on windows

* 2.0.5 released

Expand Down
3 changes: 2 additions & 1 deletion src/file.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -218,7 +218,8 @@ namespace {
, FILE_SHARE_READ | FILE_SHARE_WRITE
, nullptr
, (mode & aux::open_mode::write) ? OPEN_ALWAYS : OPEN_EXISTING
, 0, nullptr);
, (mode & aux::open_mode::hidden) ? FILE_ATTRIBUTE_HIDDEN : 0
, nullptr);

#endif

Expand Down

0 comments on commit 6f994e1

Please sign in to comment.