forked from AbleOS/ableos
23 lines
427 B
Rust
23 lines
427 B
Rust
struct Permissions {
|
|
write_files: bool,
|
|
read_files: bool,
|
|
execute_files: bool,
|
|
// Every other user is part of global
|
|
global_write_files: bool,
|
|
global_read_files: bool,
|
|
global_execute_files: bool,
|
|
}
|
|
|
|
pub struct File {
|
|
owner: u8,
|
|
permissions: Permissions,
|
|
data: Vec<u8>,
|
|
}
|
|
|
|
pub struct Folder {
|
|
owner: u8,
|
|
permissions: Permissions,
|
|
folders: Vec<Folder>,
|
|
files: Vec<File>,
|
|
}
|