Skip to content

FileLoader.cpp: create hash and link

Wouter Deconinck requested to merge wdconinc-master-patch-08125 into master

Local resources (material map, calibration files, field maps) have:

An updated source location URL should recreate local filename link (i.e. link should always be recreated if there is a chance it points to the wrong things).

A local configuration with custom files should no be modified (potentially limited by the fact that the local configuration should not use symlinks). No actual files should ever be deleted; at most links should be modified.

This will allow for clearer treatment of resources:

  • create hash from URL,
  • search for hash in cache,
    • if found: link hash to cache,
    • else: download from URL to hash,
  • link local file to hash.
Edited by Wouter Deconinck

Merge request reports

Loading