diff --git a/tensorflow/python/lib/io/file_io.py b/tensorflow/python/lib/io/file_io.py index fb4e19da902..a4c9b613068 100644 --- a/tensorflow/python/lib/io/file_io.py +++ b/tensorflow/python/lib/io/file_io.py @@ -347,6 +347,7 @@ def get_matching_files(filename): Raises: * errors.OpError: If there are filesystem / directory listing errors. + * errors.NotFoundError: If pattern to be matched is an invalid directory. """ return get_matching_files_v2(filename) @@ -401,6 +402,7 @@ def get_matching_files_v2(pattern): Raises: errors.OpError: If there are filesystem / directory listing errors. + errors.NotFoundError: If pattern to be matched is an invalid directory. """ if isinstance(pattern, six.string_types): return [