Struct kernel::schemes::file::FileSystem [] [src]

pub struct FileSystem {
    pub disk: Disk,
    pub header: Header,
    pub nodes: Vec<Node>,
}

A file system

Fields

disk
header
nodes

Methods

impl FileSystem

fn from_disk(disk: Disk) -> Option<Self>

Create a file system from a disk

fn node(&self, filename: &str) -> Option<Node>

Get node with a given filename

fn list(&self, directory: Vec<String>) -> Vec<String>

List nodes in a given directory