Skip to content
This repository has been archived by the owner on Mar 23, 2023. It is now read-only.

fix: only remove extension from path when it is non-empty #47

Merged
merged 1 commit into from
Aug 15, 2020

Conversation

achingbrain
Copy link
Member

The default config for root datastores is to have an empty string extension, but if you use putRaw or getRaw as the sharded datastore does, stripping the extension can cause the final file path to be an empty string, so guard on the extension not having a valid length.

The default config for root datastores is to have an empty string
extension, but if you use putRaw or getRaw as the sharded datastore
does, stripping the extension can cause the final file path to be
an empty string, so guard on the extention not having a valid length.
@achingbrain achingbrain changed the title fix: only remove extension from path when extension has be specified fix: only remove extension from path when it is non-empty Aug 15, 2020
@achingbrain achingbrain merged commit 9e3e042 into master Aug 15, 2020
@achingbrain achingbrain deleted the fix/put-get-raw-with-empty-extension branch August 15, 2020 07:50
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant