add if isfile() to get_hash()
This commit is contained in:
1 parent
6649770001
commit
59beae98e8
1 file changed
+1
-1
+1
-1
@@ -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):
|
||||||
|
|||||||
Reference in new issue
Block a user