pub fn close_file(&mut self, volume: &Volume, file: File) -> Result<(), Error<D::Error>> {
        let target = (volume.idx, file.starting_cluster);
        for d in self.open_files.iter_mut() {
            if *d == target {
                d.1 = Cluster::INVALID;
                break;
            }
        }
        drop(file);
        Ok(())
    }
/// Close a file with the given full path.
Close a file with the given full path.
Close a file with the given full path .
pub fn close_file(&mut self, volume: &Volume, file: File) -> Result<(), Error<D::Error>> {
        let target = (volume.idx, file.starting_cluster);
        for d in self.open_files.iter_mut() {
            if *d == target {
                d.1 = Cluster::INVALID;
                break;
            }
        }
        drop(file);
        Ok(())
    }
pub fn close_file ( & mut self , volume : & Volume , file : File ) -> Result < ( ) , Error < D :: Error > > { let target = ( volume . idx , file . starting_cluster ) ; for d in self . open_files . iter_mut ( ) { if * d == target { d . 1 = Cluster :: INVALID ; break ; } } drop ( file ) ; Ok ( ( ) ) }
Close a file with the given full path.
Close a file with the given full path .
&mut self
volume
&Volume
file
File
&mut self
volume
&Volume
file
File