diff --git a/iceprod/core/gridftp.py b/iceprod/core/gridftp.py index 344bbc01..e5b32303 100644 --- a/iceprod/core/gridftp.py +++ b/iceprod/core/gridftp.py @@ -221,6 +221,8 @@ def list(cls, address, request_timeout=None, details=False, dotfiles=False): ret = _cmd_output(cmd, timeout=timeout) if ret[0]: + if (not dotfiles) and 'No match for' in ret[1]: + return [] logger.warning(f'{ret[1]}') raise Exception('Error getting listing') return listify(ret[1], details=details, dotfiles=dotfiles)