提交 59beae98 authored 作者: Glenn Jocher's avatar Glenn Jocher

add if isfile() to get_hash()

上级 66497700
...@@ -28,7 +28,7 @@ for orientation in ExifTags.TAGS.keys(): ...@@ -28,7 +28,7 @@ for orientation in ExifTags.TAGS.keys():
def get_hash(files): def get_hash(files):
# Returns a single hash value of a list of files # Returns a single hash value of a list of files
return sum(os.path.getsize(f) for f in files) return sum(os.path.getsize(f) for f in files if os.path.isfile(f))
def exif_size(img): def exif_size(img):
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论