This patch prints the following error message on invalid ls command:
CephFS:~/>>> ls
t/ u/ y
CephFS:~/>>> ls k
k: no such directory exists
Fixes: https://tracker.ceph.com/issues/40430
Signed-off-by: Varsha Rao <varao@redhat.com>
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):