pub fn current_dir<P: AsRef<Path>>(&mut self, dir: P) -> &mut Self {
        // If `dir` is not a directory, use its parent as current dir.
        if dir.as_ref().is_dir() {
            self.0.current_dir(dir);
        } else {
            let mut cmd_dir: PathBuf = dir.as_ref().into();
            cmd_dir.pop();
            self.0.current_dir(cmd_dir);
        }

        self
    }
/// Sets the working directory for the inner `Command`.
Sets the working directory for the inner `Command`.
Sets the working directory for the inner ` Command ` .
pub fn current_dir<P: AsRef<Path>>(&mut self, dir: P) -> &mut Self {
        // If `dir` is not a directory, use its parent as current dir.
        if dir.as_ref().is_dir() {
            self.0.current_dir(dir);
        } else {
            let mut cmd_dir: PathBuf = dir.as_ref().into();
            cmd_dir.pop();
            self.0.current_dir(cmd_dir);
        }
        self
    }
pub fn current_dir < P : AsRef < Path > > ( & mut self , dir : P ) -> & mut Self { // If `dir` is not a directory, use its parent as current dir. if dir . as_ref ( ) . is_dir ( ) { self . 0 . current_dir ( dir ) ; } else { let mut cmd_dir : PathBuf = dir . as_ref ( ) . into ( ) ; cmd_dir . pop ( ) ; self . 0 . current_dir ( cmd_dir ) ; } self }
Sets the working directory for the inner `Command`.
Sets the working directory for the inner ` Command ` .
&mut self
dir
P