an in-memory Lua file system

ch1. minimal directory structure

ch2. think about file, hardlink and node

ch3. dir and getnode

ch4. mkdir : add a directory into another

ch5. special rootdir

ch6. paths

ch7. chroot and mount point

ch1. minimal directory structure

2 directories

object VS index

ch3. dir and getnode

sample

ch4. mkdir : add a directory into another

local dir = require "memfs.dir"
 
local d = dir(nil)
local dd = dir(d)
d.tree["CHILD"]=dd
 
dd.tree[".."] == d
d.tree["CHILD"] == dd

mkdir, rmdir