Closed (fixed)
Project:
File Hash
Version:
7.x-1.x-dev
Component:
Code
Priority:
Normal
Category:
Feature request
Assigned:
Unassigned
Reporter:
Created:
15 Oct 2019 at 14:21 UTC
Updated:
14 Feb 2022 at 23:34 UTC
Jump to comment: Most recent, Most recent file
Comments
Comment #2
beeyayjay commentedHere's a patch that implements the proposed solution.
Comment #3
idebr commentedComment #4
mfbWe should instead look at the file's stream wrapper bit flags, e.g. STREAM_WRAPPERS_LOCAL, to determine if the file is local.
Comment #5
mfbComment #6
mfbComment #8
mfbComment #9
mfbRealized it would be good to skip saving the empty filehash record on file load if file hash is empty, as a performance boost - to avoid unnecessary database write.
Until now, the logic was always that we "should" have a file hash, so if it's empty when a file is loaded, try to generate one and save the filehash record back to the database.
Comment #11
mfb