pub(crate) fn tmppath_in(dir: &path::Path) -> path::PathBuf {
    const LEN: usize = 10;
    let mut buf = path::PathBuf::new();
    buf.push(dir);
    buf.push(&tmpname(OsStr::new("tmp"), LEN));
    buf
}
/// Creates a randomized path in a directory that can be used as a temporary file
Creates a randomized path in a directory that can be used as a temporary file
Creates a randomized path in a directory that can be used as a temporary file
pub(crate) fn tmppath_in(dir: &path::Path) -> path::PathBuf {
    const LEN: usize = 10;
    let mut buf = path::PathBuf::new();
    buf.push(dir);
    buf.push(&tmpname(OsStr::new("tmp"), LEN));
    buf
}
pub ( crate ) fn tmppath_in ( dir : & path :: Path ) -> path :: PathBuf { const LEN : usize = 10 ; let mut buf = path :: PathBuf :: new ( ) ; buf . push ( dir ) ; buf . push ( & tmpname ( OsStr :: new ( " " ) , LEN ) ) ; buf }
Creates a randomized path in a directory that can be used as a temporary file
Creates a randomized path in a directory that can be used as a temporary file
dir
&path::Path
dir
&path::Path