pub fn tmpwork<P, F>(workdir: P, handler: F) -> Result<(), Error> where
    P: AsRef<Path>,
    F: FnOnce() -> Result<(), Error>,