mirror of
https://github.com/hkalexling/Mango.git
synced 2026-05-01 00:00:55 -04:00
Rename interesting files to supported files
This commit is contained in:
@@ -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,
|
||||
|
||||
Reference in New Issue
Block a user