fn sync_dir(&self) -> Result<()> {
        let path = PathBuf::from(&self.dir);
        std::fs::File::open(path).and_then(|d| d.sync_all())?;
        Ok(())
    }
/// Synchronizes all metadatas associated with the working directory to the
/// filesystem.
Synchronizes all metadatas associated with the working directory to the
filesystem.
Synchronizes all metadatas associated with the working directory to the filesystem .
fn sync_dir(&self) -> Result<()> {
        let path = PathBuf::from(&self.dir);
        std::fs::File::open(path).and_then(|d| d.sync_all())?;
        Ok(())
    }
fn sync_dir ( & self ) -> Result < ( ) > { let path = PathBuf :: from ( & self . dir ) ; std :: fs :: File :: open ( path ) . and_then ( | d | d . sync_all ( ) ) ? ; Ok ( ( ) ) }
Synchronizes all metadatas associated with the working directory to the
filesystem.
Synchronizes all metadatas associated with the working directory to the filesystem .
&self