MCPcopy Create free account
hub / github.com/codemeta/codemeta / rm_file

Function rm_file

scripts/aggregate.py:75–80  ·  view source on GitHub ↗

Removes a file if it exists, does nothing otherwise.

(filename)

Source from the content-addressed store, hash-verified

73 return prop_desc + columns
74
75def rm_file(filename):
76 """Removes a file if it exists, does nothing otherwise."""
77 try:
78 os.unlink(filename)
79 except FileNotFoundError:
80 pass
81
82def write_aggregate(aggregate_columns):
83 """Writes the aggregated crosswalk table."""

Callers 1

write_aggregateFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected