We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
getKeys
Assume
/tmp <------- mount point /tmp/s1-1 /tmp/s1-2/ /tmp/s1-2/s1-2-1 /tmp/s1-3
/tmp/s1-2 <------- mount point /tmp/s1-2/s2-1 /tmp/s1-2/s2-2 /tmp/s1-2/s2-3
When we call storage.getKeys('/tmp/s1-2') we get:
storage.getKeys('/tmp/s1-2')
/tmp/s1-2/s1-2-1 <---- This is odd behavior. /tmp/s1-2/s2-1 /tmp/s1-2/s2-2 /tmp/s1-2/s2-3
having /tmp/s1-2/s1-2-1 in result keys is odd, and leads to invalid behavior. Since calling storage.getItem('tmp:s1-2:s1-2-1') result null
/tmp/s1-2/s1-2-1
storage.getItem('tmp:s1-2:s1-2-1')
null
const storage = createStorage() const storage1 = createStorage() storage1.setItem('s1-1', 'bar') storage1.setItem('s1-2/s1-2-1', 'bar') storage1.setItem('s1-3', 'bar') const storage2 = createStorage() storage2.setItem('s2-1', 'bar') storage2.setItem('s2-2', 'bar') storage2.setItem('s2-3', 'bar') storage.mount('/tmp', storage1) storage.mount('/tmp/s1-2', storage2) const keys = await storage.getKeys('/tmp/s1-2') const content = await storage.getItem('tmp:s1-2:s1-2-1') # null
The text was updated successfully, but these errors were encountered:
test: add reproduction for #27
f6daeac
Successfully merging a pull request may close this issue.
Assume
When we call
storage.getKeys('/tmp/s1-2')
we get:having
/tmp/s1-2/s1-2-1
in result keys is odd, and leads to invalid behavior. Since callingstorage.getItem('tmp:s1-2:s1-2-1')
resultnull
The text was updated successfully, but these errors were encountered: