storr icon indicating copy to clipboard operation
storr copied to clipboard

Base64 encoding and case insensitive file systems

Open wlandau opened this issue 7 years ago • 2 comments

The Windows file system is case-insensitive, which could cause name collisions in rare edge cases.

library(storr)
s <- storr::storr_rds(tempfile(), mangle_key = TRUE)
s$set("a", TRUE)
s$set("É", FALSE)
s$list()
#> [1] "É"
s$get("a")
#> [1] FALSE

Created on 2019-01-02 by the reprex package (v0.2.1)

Base32 encoding would exacerbate #94, but not by much.

wlandau avatar Jan 02 '19 14:01 wlandau

OSX too! This is probably not something that can be worked around directly, but something that should be documented. Something that could be dealt with in the #89 work?

richfitz avatar Jan 09 '19 10:01 richfitz

Yeah, I think documentation + #90 may be enough, especially since this is a rare enough edge case.

wlandau avatar Jan 09 '19 12:01 wlandau