fn _get_ink_dir() -> Result<PathBuf, InkError> {
    let ink_dir = env::current_dir()?.join(".ink");
    if ink_dir.exists() {
        Ok(ink_dir)
    } else {
        Err(InkError::Err("Uninitialized"))
    }
}
/// Find the location of the .ink directory
/// For now, this returns the current directory + .ink but
/// will check in higher directories
Find the location of the .ink directory
For now, this returns the current directory + .ink but
will check in higher directories
Find the location of the . ink directory For now this returns the current directory + . ink but will check in higher directories
fn _get_ink_dir() -> Result<PathBuf, InkError> {
    let ink_dir = env::current_dir()?.join(".ink");
    if ink_dir.exists() {
        Ok(ink_dir)
    } else {
        Err(InkError::Err("Uninitialized"))
    }
}
fn _get_ink_dir ( ) -> Result < PathBuf , InkError > { let ink_dir = env :: current_dir ( ) ? . join ( " " ) ; if ink_dir . exists ( ) { Ok ( ink_dir ) } else { Err ( InkError :: Err ( " " ) ) } }
Find the location of the .ink directory
For now, this returns the current directory + .ink but
will check in higher directories
Find the location of the . ink directory For now this returns the current directory + . ink but will check in higher directories