MCPcopy Create free account
hub / github.com/dec0dOS/amazing-github-template / remove

Function remove

hooks/post_gen_project.py:8–13  ·  view source on GitHub ↗
(filepath)

Source from the content-addressed store, hash-verified

6
7
8def remove(filepath):
9 fullpath = os.path.join(PROJECT_DIRECTORY, filepath)
10 if os.path.isfile(fullpath):
11 os.remove(fullpath)
12 else:
13 shutil.rmtree(fullpath, ignore_errors=True)
14
15
16if __name__ == "__main__":

Callers 1

Calls

no outgoing calls

Tested by

no test coverage detected