pub fn check_path(path: &PathBuf) -> Result<bool, String>
{
    if is_file(path)
    {
        return Err(s!("This is not a directoy path."));
    }

    if count_files(path) == 0
    {
        return Err(s!("This is an empty directory."));
    }

    Ok(true)
}
// Checks if the path is valid for succ
Checks if the path is valid for succ
Checks if the path is valid for succ
pub fn check_path(path: &PathBuf) -> Result<bool, String>
{
    if is_file(path)
    {
        return Err(s!("This is not a directoy path."));
    }
    if count_files(path) == 0
    {
        return Err(s!("This is an empty directory."));
    }
    Ok(true)
}
pub fn check_path ( path : & PathBuf ) -> Result < bool , String > { if is_file ( path ) { return Err ( s ! ( " " ) ) ; } if count_files ( path ) == 0 { return Err ( s ! ( " " ) ) ; } Ok ( true ) }
Checks if the path is valid for succ
Checks if the path is valid for succ
path
&PathBuf
path
&PathBuf