You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
It's possible to create a file and a directory with the same name. The key does not show up in op pairs/keys when there's a directory with the same name. rm'ing the key removes the directory too.
Is this intentional?
URL with("http://localhost:8080/dir?action=mkdir") fetch
// ==> null
URL with("http://localhost:8080/?action=write&key=dir") post ("dir_val")
// ==> null
// Can read the key "dir" now:
URL with("http://localhost:8080/?action=read&key=dir") fetch
// ==> "dir_val"
// But it does not show up in pairs:
URL with("http://localhost:8080/?action=select&op=pairs") fetch
// ==> [["dir",{}]]
// rm'ing the key removes both the key-value pair, AND the directory.
URL with("http://localhost:8080/?action=rm&key=dir") fetch
// ==> null
URL with("http://localhost:8080/?action=read&key=dir") fetch
// ==> null
URL with("http://localhost:8080/?action=select&op=pairs") fetch
// ==> []
The text was updated successfully, but these errors were encountered:
This was done to simplify implementation. The convention is to use _name for files and name for directories. The select operation (and others?) use this convention to determine their output. In the future, this info will be stored in the metadata for the nodes.
It's possible to create a file and a directory with the same name. The key does not show up in op pairs/keys when there's a directory with the same name. rm'ing the key removes the directory too.
Is this intentional?
The text was updated successfully, but these errors were encountered: