Rename interesting files to supported files

This commit is contained in:
Alex Ling
2021-01-26 10:55:50 +00:00
parent 0ba2409c9a
commit def64d9f98
4 changed files with 16 additions and 19 deletions
+1 -1
View File
@@ -13,7 +13,7 @@ class File
# ensures that moving (unless to another device) and renaming the file
# preserves the signature, while copying or editing the file changes it.
def self.signature(filename) : UInt64
return 0u64 unless is_interesting_file filename
return 0u64 unless is_supported_file filename
info = File.info filename
signatures = [
info.inode,