shelljougahara 0.0.2

A simulated shell written in Rust.
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
//! The content of a link inode.

use std::sync::{Mutex, Weak};

use crate::{Inode, fs::inode::size::Size};

#[derive(Debug, Clone)]
pub struct Link {
    pub target_path: String,
    pub target_inode: Weak<Mutex<Inode>>,
}

impl Size for Link {
    fn size(&self) -> u64 {
        self.target_path.len() as u64
    }
}