sketchy implementation of readdir

This commit is contained in:
Pat Hickey
2020-12-10 17:31:21 -08:00
parent 03c92de5aa
commit 47f3a6bcb9
3 changed files with 113 additions and 12 deletions

View File

@@ -15,6 +15,10 @@ pub trait WasiFile: FileIoExt + SetTimes {
fn set_filestat_size(&self, _size: u64) -> Result<(), Error>;
}
// XXX missing:
// Unknown
// Directory
// SymbolicLink
#[derive(Debug, Copy, Clone)]
pub enum Filetype {
BlockDevice,