Open alanbrent opened 2 years ago
Can you explain this PR in usage aspect? I am unable to comprehend your description here sorry 😑
Apologies. I am actually still gathering years-old context, and am attempting to forward-port a patch our org has maintained on top of v1.1.0. It's possible that the patch is not actually necessary. I will circle back in the next few days to find out and update this PR when I've done so. Thanks for taking a look.
The local filesystem glob in
AssetSync::Storage#get_local_files
uses fuzzy matching whenconfig.prefix
is present. This can present a problem in some cases, as it doesn't allow for distinguishing between (e.g.) a folder calledassets/
and another folder calledassets-temp/
. A situation could arise where the latter folder has thousands/millions of files and we mistakenly publish local-only files, or worse we could clobber another directory in the bucket managed in a completely different context.This change allows developers to be more specific in their
config.prefix
by using a trailing slash for their folder name.