mirror of
https://github.com/Sude-/lgogdownloader.git
synced 2025-02-02 05:52:31 +01:00
Make sure that file is regular file when getting local hash
This commit is contained in:
parent
61e0c31775
commit
7d5874d312
@ -2645,7 +2645,7 @@ std::string Downloader::getLocalFileHash(const std::string& filepath, const std:
|
|||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
if (boost::filesystem::exists(path))
|
if (boost::filesystem::exists(path) && boost::filesystem::is_regular_file(path))
|
||||||
{
|
{
|
||||||
localHash = Util::getFileHash(path.string(), RHASH_MD5);
|
localHash = Util::getFileHash(path.string(), RHASH_MD5);
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user