clients: list = [],
sectype: Optional[List[str]] = None) -> Dict[str, Any]:
- try:
- cephfs_path_is_dir(self.mgr, fs_name, path)
- except NotADirectoryError:
- raise NFSException(f"path {path} is not a dir", -errno.ENOTDIR)
- except cephfs.ObjectNotFound:
- raise NFSObjectNotFound(f"path {path} does not exist")
- except cephfs.Error as e:
- raise NFSException(e.args[1], -e.args[0])
+ validate_cephfs_path(self.mgr, fs_name, path)
pseudo_path = normalize_path(pseudo_path)