Lines Matching defs:path
165 make_dir(char * path, mode_t mode)
167 char * s = path;
187 if (mkdir(path, mode) < 0) {
191 || (stat(path, &st) < 0 || !S_ISDIR(st.st_mode))) {
198 /* Remove any inserted nul from the path. */
203 DPRINTF(E_WARN, L_GENERAL, "make_dir: cannot create directory '%s'\n", path);
250 resolve_unknown_type(const char * path, enum media_types dir_type)
257 if( lstat(path, &entry) == 0 )
261 if( (len = readlink(path, str_buf, PATH_MAX-1)) > 0 )
264 //DEBUG DPRINTF(E_DEBUG, L_GENERAL, "Checking for recursive symbolic link: %s (%s)\n", path, str_buf);
265 if( strncmp(path, str_buf, strlen(str_buf)) == 0 )
267 DPRINTF(E_DEBUG, L_GENERAL, "Ignoring recursive symbolic link: %s (%s)\n", path, str_buf);
271 stat(path, &entry);
283 if( is_image(path) ||
284 is_audio(path) ||
285 is_video(path) ||
286 is_playlist(path) )
290 if( is_audio(path) ||
291 is_playlist(path) )
295 if( is_video(path) )
299 if( is_image(path) )