Skip to content

Commit

Permalink
fix
Browse files Browse the repository at this point in the history
  • Loading branch information
xiaojiebao committed Jun 6, 2024
1 parent f1bd065 commit 3881a31
Showing 1 changed file with 3 additions and 7 deletions.
10 changes: 3 additions & 7 deletions clients/client-python/gravitino/filesystem/gvfs.py
Original file line number Diff line number Diff line change
Expand Up @@ -137,13 +137,9 @@ def exists(self, path, **kwargs):
:return A file or directory exists, a boolean
"""
context: FilesetContext = self._get_fileset_context(path)
try:
context.fs.info(
self._strip_storage_protocol(context.storage_type, context.actual_path)
)
except FileNotFoundError:
return False
return True
return context.fs.exists(
self._strip_storage_protocol(context.storage_type, context.actual_path)
)

def cp_file(self, path1, path2, **kwargs):
"""Copy a file.
Expand Down

0 comments on commit 3881a31

Please sign in to comment.