Lines Matching defs:path
234 make_dir(char * path, mode_t mode)
236 char * s = path;
256 if (mkdir(path, mode) < 0) {
259 if (errno != EEXIST || (stat(path, &st) < 0 || !S_ISDIR(st.st_mode))) {
260 DPRINTF(E_WARN, L_GENERAL, "make_dir: cannot create directory '%s'\n", path);
269 /* Remove any inserted nul from the path. */
356 resolve_unknown_type(const char * path, enum media_types dir_type)
363 if( lstat(path, &entry) == 0 )
367 if( (len = readlink(path, str_buf, PATH_MAX-1)) > 0 )
370 //DEBUG DPRINTF(E_DEBUG, L_GENERAL, "Checking for recursive symbolic link: %s (%s)\n", path, str_buf);
371 if( strncmp(path, str_buf, strlen(str_buf)) == 0 )
373 DPRINTF(E_DEBUG, L_GENERAL, "Ignoring recursive symbolic link: %s (%s)\n", path, str_buf);
377 stat(path, &entry);
389 if( is_image(path) ||
390 is_audio(path) ||
391 is_video(path) ||
392 is_playlist(path) )
396 if( is_audio(path) ||
397 is_playlist(path) )
401 if( is_video(path) )
405 if( is_image(path) )