Skip to content

Commit

Permalink
Fixed FilesystemPath::isFile return value.
Browse files Browse the repository at this point in the history
FilesystemPath::isFile was changed to return the result of it
not being a directory and if it exists. Resolves avast#490
  • Loading branch information
astrelsky committed Feb 5, 2019
1 parent 6e6c609 commit d78a6c3
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
3 changes: 2 additions & 1 deletion CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,7 +1,8 @@
# Changelog

# dev

* Fix: Modified FilesystemPath::isFile to return true only when the file also exists. ([#490]
(https://github.com/avast-tl/retdec/issues/490)).
* Fix: Added option to `retdec-bin2pat` to have the objects list passed through a text file.
Modified `retdec-signature-from-library-creator.py` to pass objects list as a text file. ([#472](https://github.com/avast-tl/retdec/issues/472)).
* New Feature: Added presentation of imported types and TypeRef hashes for .NET binaries ([#363](https://github.com/avast-tl/retdec/issues/363), [#364](https://github.com/avast-tl/retdec/issues/364), [#428](https://github.com/avast-tl/retdec/issues/428)).
Expand Down
2 changes: 1 addition & 1 deletion src/utils/filesystem_path.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -390,7 +390,7 @@ bool FilesystemPath::isDirectory() const
*/
bool FilesystemPath::isFile() const
{
return _impl->isFile();
return _impl->isFile() && _impl->exists();
}

/**
Expand Down

0 comments on commit d78a6c3

Please sign in to comment.