pub fn close_dir(&mut self, volume: &Volume, dir: Directory) {
        let target = (volume.idx, dir.cluster);
        for d in self.open_dirs.iter_mut() {
            if *d == target {
                d.1 = Cluster::INVALID;
                break;
            }
        }
        drop(dir);
    }
/// Close a directory. You cannot perform operations on an open directory
/// and so must close it if you want to do something with it.
Close a directory. You cannot perform operations on an open directory
and so must close it if you want to do something with it.
Close a directory . You cannot perform operations on an open directory and so must close it if you want to do something with it .
pub fn close_dir(&mut self, volume: &Volume, dir: Directory) {
        let target = (volume.idx, dir.cluster);
        for d in self.open_dirs.iter_mut() {
            if *d == target {
                d.1 = Cluster::INVALID;
                break;
            }
        }
        drop(dir);
    }
pub fn close_dir ( & mut self , volume : & Volume , dir : Directory ) { let target = ( volume . idx , dir . cluster ) ; for d in self . open_dirs . iter_mut ( ) { if * d == target { d . 1 = Cluster :: INVALID ; break ; } } drop ( dir ) ; }
Close a directory.
Close a directory .
&mut self
volume
&Volume
dir
Directory
&mut self
volume
&Volume
dir
Directory