MCPcopy Index your code
hub / github.com/aws/aws-cli / exists

Method exists

awscli/botocore/loaders.py:146–156  ·  view source on GitHub ↗

Checks if the file exists. :type file_path: str :param file_path: The full path to the file to load without the '.json' extension. :return: True if file path exists, False otherwise.

(self, file_path)

Source from the content-addressed store, hash-verified

144 """
145
146 def exists(self, file_path):
147 """Checks if the file exists.
148
149 :type file_path: str
150 :param file_path: The full path to the file to load without
151 the '.json' extension.
152
153 :return: True if file path exists, False otherwise.
154
155 """
156 return os.path.isfile(file_path + '.json')
157
158 def load_file(self, file_path):
159 """Attempt to load the file path.

Callers 15

_build_ac_indexFunction · 0.80
_remove_file_if_existsFunction · 0.80
create_exeFunction · 0.80
_bootstap_venvFunction · 0.80
path_existsMethod · 0.80
run_benchmarksMethod · 0.80
_get_config_contentsFunction · 0.80
test_mv_local_to_s3Method · 0.80
test_mv_s3_to_localMethod · 0.80

Calls

no outgoing calls