MCPcopy Create free account
hub / github.com/bitsadmin/wesng / check_file_exists

Function check_file_exists

wes.py:865–869  ·  view source on GitHub ↗
(value)

Source from the content-addressed store, hash-verified

863
864# Validate file existence for user-provided arguments
865def check_file_exists(value):
866 if not os.path.isfile(value):
867 raise argparse.ArgumentTypeError('File \'%s\' does not exist.' % value)
868
869 return value
870
871
872# Validate file existence for definitions file

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected