Update file path metadata for file-backed objects (e.g., SpatRasters). Useful when moving saved objects between projects or machines.

remapFilenames(obj, tags, cachePath, ...)

Arguments

obj

(optional) object whose file path metadata will be remapped

tags

cache tags data.table object

cachePath

character string specifying the path to the cache directory or NULL

...

Additional path arguments, passed to absoluteBase() and modifyListPaths()