mirror of
https://github.com/ceph/ceph
synced 2025-02-23 19:17:37 +00:00
Merge PR #28652 into master
* refs/pull/28652/head: cephfs-shell: Add error message for invalid ls commands Reviewed-by: Rishabh Dave <ridave@redhat.com> Reviewed-by: Patrick Donnelly <pdonnell@redhat.com>
This commit is contained in:
commit
aed88d43a1
@ -117,8 +117,9 @@ def ls(path, opts=''):
|
||||
elif almost_all and dent.d_name in (b'.', b'..'):
|
||||
continue
|
||||
yield dent
|
||||
except cephfs.ObjectNotFound:
|
||||
return []
|
||||
except libcephfs.ObjectNotFound:
|
||||
perror('{}: no such directory exists'.format(path), end='\n',
|
||||
apply_style=True)
|
||||
|
||||
|
||||
def glob(path, pattern):
|
||||
|
Loading…
Reference in New Issue
Block a user