MCPcopy
hub / github.com/pyinstaller/pyinstaller / delete

Method delete

bootloader/waflib/Node.py:172–184  ·  view source on GitHub ↗
(self, evict=True)

Source from the content-addressed store, hash-verified

170 os.chmod(self.abspath(), val)
171
172 def delete(self, evict=True):
173 try:
174 try:
175 if os.path.isdir(self.abspath()):
176 shutil.rmtree(self.abspath())
177 else:
178 os.remove(self.abspath())
179 except OSError:
180 if os.path.exists(self.abspath()):
181 raise
182 finally:
183 if evict:
184 self.evict()
185
186 def evict(self):
187 del self.parent.children[self.name]

Callers 3

archiveMethod · 0.80
cleanMethod · 0.80
get_ifort_version_win32Function · 0.80

Calls 4

abspathMethod · 0.95
evictMethod · 0.95
isdirMethod · 0.80
existsMethod · 0.80

Tested by

no test coverage detected