← Back
Virtual FS
FileSystem.new [intermediate]In-memory virtual file system with shell-like commands
In-memory virtual file system with shell-like commands
For the full interactive experience:
$ mix raxol.playground
Code
fs = FileSystem.new()
{:ok, fs} = FileSystem.mkdir(fs, "/home")
{:ok, fs} = FileSystem.mkdir(fs, "/home/user")
{:ok, fs} = FileSystem.mkdir(fs, "/home/user/docs")
{:ok, fs} = FileSystem.mkdir(fs, "/home/user/projects")
{:ok, fs} =
FileSystem.create_file(
fs,
"/home/user/readme.txt",
"Welcome to Raxol VFS!\n\nThis is a virtual file system demo.\nAll data lives in memory."
)