fn determine_dest(&self) -> Option<String> {
        match self.dest {
            Some(ref s) => {
                let p = Path::new(s.as_str());
                if p.exists() {
                    Some(
                        self.next_available_path(s.as_str(), 0)?
                            .to_str()?
                            .to_owned(),
                    )
                } else {
                    Some(s.clone())
                }
            }
            _ => Some(
                self.next_available_path(self.source.as_str(), 0)?
                    .to_str()?
                    .to_owned(),
            ),
        }
    }
/// finds the next valid destination path, if no dest path is supplied
/// then the destination path is the existing file name suffixed, starting from 0
finds the next valid destination path, if no dest path is supplied
then the destination path is the existing file name suffixed, starting from 0
finds the next valid destination path if no dest path is supplied then the destination path is the existing file name suffixed starting from 0
fn determine_dest(&self) -> Option<String> {
        match self.dest {
            Some(ref s) => {
                let p = Path::new(s.as_str());
                if p.exists() {
                    Some(
                        self.next_available_path(s.as_str(), 0)?
                            .to_str()?
                            .to_owned(),
                    )
                } else {
                    Some(s.clone())
                }
            }
            _ => Some(
                self.next_available_path(self.source.as_str(), 0)?
                    .to_str()?
                    .to_owned(),
            ),
        }
    }
fn determine_dest ( & self ) -> Option < String > { match self . dest { Some ( ref s ) => { let p = Path :: new ( s . as_str ( ) ) ; if p . exists ( ) { Some ( self . next_available_path ( s . as_str ( ) , 0 ) ? . to_str ( ) ? . to_owned ( ) , ) } else { Some ( s . clone ( ) ) } } _ => Some ( self . next_available_path ( self . source . as_str ( ) , 0 ) ? . to_str ( ) ? . to_owned ( ) , ) , } }
finds the next valid destination path, if no dest path is supplied
then the destination path is the existing file name suffixed, starting from 0
finds the next valid destination path if no dest path is supplied then the destination path is the existing file name suffixed starting from 0
&self