Skip to content

Instantly share code, notes, and snippets.

@mafintosh
Created October 16, 2019 11:09
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save mafintosh/33b7bd35d18bfb0a0f6fd4412f112943 to your computer and use it in GitHub Desktop.
Save mafintosh/33b7bd35d18bfb0a0f6fd4412f112943 to your computer and use it in GitHub Desktop.
await trie.symlink('bb/b','c')
await trie.symlink('../dd','b')
await trie.put('dd/c/bc/b','dsiypoxbuo') // dd/c/bc/b --> dsiypoxbuo
await trie.put('b/d/c/c','ljbdomybyu') // dd/d/c/c --> ljbdomybyu
await trie.rename('dd','c/db') // dd/c/bc/b --> dd/b/db/c/bc/b, dd/d/c/c --> dd/b/db/d/c/c
await trie.put('c/db/c/b/bc','nlcmgluggs')
// reference says bb/b/db/c/bc/b -> dsiypoxbuo
@andrewosh
Copy link

andrewosh commented Oct 16, 2019

After rename('dd', 'c/db'), shouldn't dd/c/bc/b -> bb/b/db/c/bc/b, d/d/d/cc -> bb/b/db/d/c/c?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment