MCPcopy Create free account
hub / github.com/FlightGear/flightgear / remove

Function remove

scripts/python/recordreplay.py:75–83  ·  view source on GitHub ↗

Removes file, ignoring any error.

(path)

Source from the content-addressed store, hash-verified

73
74
75def remove(path):
76 '''
77 Removes file, ignoring any error.
78 '''
79 log(f'Removing: {path}')
80 try:
81 os.remove(path)
82 except Exception as e:
83 log(f'Failed to remove {path}: {e}')
84
85
86def readlink(path):

Callers 8

remove_directoryFunction · 0.85
handle_deleteFunction · 0.85
processSTGFunction · 0.85
findShortestRouteMethod · 0.85
updateMethod · 0.85
updateMethod · 0.85
test_record_replayFunction · 0.85
test_motionFunction · 0.85

Calls 2

logFunction · 0.70
removeMethod · 0.45

Tested by 2

test_record_replayFunction · 0.68
test_motionFunction · 0.68