Last active
August 8, 2016 21:33
-
-
Save ahl/c249e7180de1e6cecd5554290f745422 to your computer and use it in GitHub Desktop.
nomsfs blog: final schema
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
struct Filesystem { | |
root: struct Inode { | |
attr: struct Attr { /* e.g. permissions, modification time, etc. */ } | |
contents: Union { | |
struct File { data: Ref<Blob> /* Noms pile of bytes */ } | | |
struct Directory: { contents: Map<string, Cycle<1>> } | |
} | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment