You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I personally probably don't need this, but just as an idea:
Hashing the pathname has a number of disadvantages, well mostly one,... what if the file (or an of its parent dirs) is moved?
What I've described in chapters files as sidecars mpv-player/mpv#11248, namely hashing the file’s contents. Just with some minor change, namely not hashing the full file, but perhaps only the first 1MB or so.... or perhaps better somewhere in the middle of the file. Of course this won’t work with streamed file.
Another idea would be to attach XATTRs to the file and use UUIDs. But again, wouldn't work on streamed data, and sometimes XATTRs may get "lost".
Maybe one could just keep hashing the pathname for any paths that don't start with / or file:
I personally probably don't need this, but just as an idea:
Hashing the pathname has a number of disadvantages, well mostly one,... what if the file (or an of its parent dirs) is moved?
Maybe one could just keep hashing the pathname for any paths that don't start with
/orfile: