diff options
-rw-r--r-- | common/md5.cpp | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/common/md5.cpp b/common/md5.cpp index 1962f8cb94..11bc5d6487 100644 --- a/common/md5.cpp +++ b/common/md5.cpp @@ -234,6 +234,9 @@ void md5_finish(md5_context *ctx, uint8 digest[16]) { } bool md5_file(const FilesystemNode &file, uint8 digest[16], uint32 length) { + if (file.isDirectory()) + return false; + return md5_file(file.path().c_str(), digest, length); } |