/// Updates content of the host-specific directory of the local copy.
///
/// If something goes wrong, logs a message.
Updates content of the host-specific directory of the local copy.
If something goes wrong, logs a message.
Updates content of the host - specific directory of the local copy . If something goes wrong logs a message .
fn update_host(self, entry: DirEntry) {
        if !entry.file_type().map(|ft| ft.is_dir()).unwrap_or(false) {
            return
        }
        match entry_to_uri_component(&entry) {
            Some(host) => self.update_module(host, entry.path()),
            None => {
                warn!(
                    "{}: illegal host directory. Skipping.",
                    entry.path().display()
                );
            }
        }
    }
fn update_host ( self , entry : DirEntry ) { if ! entry . file_type ( ) . map ( | ft | ft . is_dir ( ) ) . unwrap_or ( false ) { return } match entry_to_uri_component ( & entry ) { Some ( host ) => self . update_module ( host , entry . path ( ) ) , None => { warn ! ( " " entry path ( ) display ( ) ) ; } } }
Updates content of the host-specific directory of the local copy.
Updates content of the host - specific directory of the local copy .
self
entry
DirEntry