mirror of https://github.com/djcb/mu.git
* mu-path: cosmetics
This commit is contained in:
parent
96dccc01a4
commit
67e299bae5
|
@ -240,14 +240,14 @@ mu_path_walk_maildir (const char *path, MuPathWalkMsgCallback cb_msg,
|
||||||
return MU_ERROR;
|
return MU_ERROR;
|
||||||
}
|
}
|
||||||
|
|
||||||
if ((statbuf.st_mode & S_IFMT) == S_IFREG)
|
if (S_ISREG(statbuf.st_mode))
|
||||||
return process_file (path, cb_msg, data);
|
return process_file (path, cb_msg, data);
|
||||||
|
else if (S_ISDIR(statbuf.st_mode))
|
||||||
if ((statbuf.st_mode & S_IFMT) == S_IFDIR)
|
|
||||||
return process_dir (path, cb_msg, cb_dir, data);
|
return process_dir (path, cb_msg, cb_dir, data);
|
||||||
|
else
|
||||||
|
g_warning ("%s: unsupported file type for %s",
|
||||||
|
__FUNCTION__, path);
|
||||||
|
|
||||||
g_warning ("%s: unsupported file type for %s",
|
|
||||||
__FUNCTION__, path);
|
|
||||||
return MU_ERROR;
|
return MU_ERROR;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue