MCPcopy
hub / github.com/zju3dv/4K4D / exists

Method exists

easyvolcap/engine/file_client.py:1067–1076  ·  view source on GitHub ↗

Check whether a file path exists. Args: filepath (str or Path): Path to be checked whether exists. Returns: bool: Return ``True`` if ``filepath`` exists, ``False`` otherwise.

(self, filepath: Union[str, Path])

Source from the content-addressed store, hash-verified

1065 self.client.remove(filepath)
1066
1067 def exists(self, filepath: Union[str, Path]) -> bool:
1068 """Check whether a file path exists.
1069
1070 Args:
1071 filepath (str or Path): Path to be checked whether exists.
1072
1073 Returns:
1074 bool: Return ``True`` if ``filepath`` exists, ``False`` otherwise.
1075 """
1076 return self.client.exists(filepath)
1077
1078 def isdir(self, filepath: Union[str, Path]) -> bool:
1079 """Check whether a file path is a directory.

Callers 15

save_modelFunction · 0.45
save_pfmFunction · 0.45
write_depth_imgFunction · 0.45
read_mask_by_img_pathFunction · 0.45
captureMethod · 0.45
run_if_not_existsFunction · 0.45
_file2dictMethod · 0.45
find_vcs_rootFunction · 0.45
existsMethod · 0.45
__init__Method · 0.45
load_pathsMethod · 0.45
mainFunction · 0.45

Calls

no outgoing calls

Tested by

no test coverage detected