mapper: check "x" permission on music directory
This is a common support case, and hopefully, the new error message will allow the user to understand the error without requiring support.
This commit is contained in:
@@ -68,6 +68,14 @@ check_directory(const char *path)
|
||||
g_warning("Not a directory: %s", path);
|
||||
return;
|
||||
}
|
||||
|
||||
#ifndef WIN32
|
||||
char *x = g_build_filename(path, ".", NULL);
|
||||
if (stat(x, &st) < 0 && errno == EACCES)
|
||||
g_warning("No permission to traverse (\"execute\") directory: %s",
|
||||
path);
|
||||
g_free(x);
|
||||
#endif
|
||||
}
|
||||
|
||||
static void
|
||||
|
Reference in New Issue
Block a user