Skip to content
Snippets Groups Projects
Commit 68c31600 authored by Sarthak Kapoor's avatar Sarthak Kapoor
Browse files

Add raw_path_exists method to ClientContext

Changelog: Fixed
parent a2f25f0e
No related branches found
No related tags found
2 merge requests!1711Add raw_path_exists method to ClientContext,!1682Resolve "Memory leak in the archive packer"
......@@ -502,6 +502,10 @@ class ClientContext(Context):
file_path = os.path.join(self.local_dir, path)
return open(file_path, *args, **kwargs)
def raw_path_exists(self, path: str) -> bool:
file_path = os.path.join(self.local_dir, path)
return os.path.exists(file_path)
def create_reference(
self,
section: MSection,
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment