/// Will still detect a file even if it is in Trash.
Will still detect a file even if it is in Trash.
Will still detect a file even if it is in Trash .
fn contains(&self, id: &DriveId) -> Result<bool, Error> {
        let response = self.hub
            .files()
            .get(&id)
            .add_scope(drive3::Scope::Full)
            .doit();
        match response {
            Ok((_, file)) => Ok(file.id == Some(id.to_string())),
            Err(e) => Err(err_msg(format!("{:#?}", e))),
        }
    }
fn contains ( & self , id : & DriveId ) -> Result < bool , Error > { let response = self . hub . files ( ) . get ( & id ) . add_scope ( drive3 :: Scope :: Full ) . doit ( ) ; match response { Ok ( ( _ , file ) ) => Ok ( file . id == Some ( id . to_string ( ) ) ) , Err ( e ) => Err ( err_msg ( format ! ( " " e ) ) ) , } }
Will still detect a file even if it is in Trash.
Will still detect a file even if it is in Trash .
&self
id
&DriveId