Is file-validator examining the content of a file to ensure file integrity? #219
Replies: 2 comments 2 replies
-
hi |
Beta Was this translation helpful? Give feedback.
-
HI read here https://file-validator.github.io/docs/usage/file_validator#how-used |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
I'm not quite sure about the capability of file-validator. Is it capable of completely inspecting a given file to find out if a file is, say a valid jpg or mp3 or if it's corrupted? I have tinkered a bit with
ffmpegfor that purpose, but plan to extend file integrity checking to more file types. The issue I have is that I don't have any existing file hashes to compare my files to, so I need to inspect a bunch of files to see if they're corrupt or not.Merely looking at the magic number wouldn't work, because a corruption could have left the magic number untouched, but not the actual file data.
To that end, can you provide a small example script that would allow me to use file-validator?
-Thanks
Beta Was this translation helpful? Give feedback.
All reactions