mirror of
https://github.com/postgrespro/pg_probackup.git
synced 2025-01-09 14:45:47 +02:00
Do not skip subdirectories if parent directory contains a file
This commit is contained in:
parent
30681560c0
commit
8bd2248ac4
8
dir.c
8
dir.c
@ -515,13 +515,7 @@ list_data_directories(parray *files, const char *path, bool is_root,
|
||||
elog(ERROR, "cannot stat file \"%s\": %s", child, strerror(errno));
|
||||
|
||||
if (!S_ISDIR(st.st_mode))
|
||||
{
|
||||
/* Stop reading the directory if we met file */
|
||||
if (!is_root)
|
||||
break;
|
||||
else
|
||||
continue;
|
||||
}
|
||||
continue;
|
||||
|
||||
/* Check for exclude for the first level of listing */
|
||||
if (is_root && exclude)
|
||||
|
Loading…
Reference in New Issue
Block a user