manticoresoftware / manticoresearch-backup

Repository for Manticore Search backup scripts
GNU General Public License v3.0
3 stars 1 forks source link

hasFiles() fix related with empty dirs #108

Closed sanikolaev closed 6 months ago

sanikolaev commented 6 months ago

hasFiles(data dir) shows true in case there's /var/lib/manticore/.extra/_gpgorigin. The patch limits max depth to the highest level only, so we don't check inside hidden dirs.