I mean I was hoping, maybe I misunderstood something when googling, and all the file modifications bubble up at least to the parent folder mtime. What I was asking and hoping for, was maybe some linux-specific or XFS-specific way to be able to speed up the file scanning part. So I've written that simple console app to save the hashes before syncing files to Bitcasa, and then verifying them later.Īnyway. Bitcasa never worked reliably - it constantly corrupted or out right lost the files. I made years ago, when I was using/or trying to use the ill-fated Bitcasa unlimited cloud drive. I already have the app for scanning and hashing all the files. It seems, if files are merely modified (as in text file is edited), this modification time does not bubble up even to the parent folder's modified time, is that correct? If this is correct, that means, I cannot rely folder mtimes at all.īasically, what's the fastest way to traverse the file system tree, by skipping the unchanged files/folders as fast as for the reply. As I understand, the folders get their modified time updated only on file additions, deletions or renames. I tried to read up on folder modified times changes in linux. Is there any faster way to do this, than to check every single file individually? By somehow skipping whole folders, if no files changed inside. Maybe there is a better way to see if file has been changed in any way? What is the best way to check if a file has not been changed in any way? I was thinking - match the full path and modified time-stamp. I am not even an expert on windows file and folder time-stamps, let alone linux. basically, I want to skip all the unchanged files as best/smart/fast as possible. The part I need some help with and wanna ask some questions about, is making the scanning process as fast as possible. There is nothing fancy happening with them, so the logic to find and decide what happened using hashes is pretty simple. Like I said, the files are media (movies, tv shows). Using the hashes, I will be able to track all the changes to the files. I am gonna use hashes to identify the files. And write the log on all the changes - new, deleted, renamed(moved) and modified files. It would scan the user shares on my unraid server over LAN, detect changes in file system and calculate hashes for all the and modified files. Basically, I would periodically use it (once a day, or once a week), on my main windows rig. I want to write a simple console app to track all the file changes on my media library shares. So please excuse my maybe silly questions Using unraid for a couple of months now - that's all my linux experience so far. I am also a windows guy - no linux at all. I am not a real programmer, I'm just a self-taught hobbyist.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |