utils/files.c
int path_exists(char *path)
{
    struct stat st = {0};

    if (stat(path, &st) == -1) 
        return 0;

    return 1;
}
/* 
 * path_exists - Function checks path and returns 1 if 
 * it exists, otherwise Function returns 0. Argument
 * path is directory or file path which we want to check.
 */
Function checks path and returns 1 if
it exists, otherwise Function returns 0. Argument
path is directory or file path which we want to check.
Function checks path and returns 1 if it exists otherwise Function returns 0 . Argument path is directory or file path which we want to check .
int path_exists(char *path)
{
    struct stat st = {0};
    if (stat(path, &st) == -1) 
        return 0;
    return 1;
}
int path_exists ( char * path ) { struct stat st = { 0 } ; if ( stat ( path , & st ) == -1 ) return 0 ; return 1 ; }
path_exists - Function checks path and returns 1 if
 it exists, otherwise Function returns 0.
path_exists - Function checks path and returns 1 if it exists otherwise Function returns 0 .