MCPcopy Create free account
hub / github.com/ActiveState/code / remove

Function remove

recipes/Python/576777_Simple_FTP_Mirror/recipe-576777.py:337–343  ·  view source on GitHub ↗
(remote)

Source from the content-addressed store, hash-verified

335
336
337def remove(remote):
338 if globals['verbose']:
339 info(remote)
340 result = raw_input('Do you really want to remove this directory? [y|n]: ')
341 if result.lower() not in ('y', 'yes'):
342 log('Aborted', abort=True)
343 remote.removedir(remote.root)
344
345
346def main():

Callers 1

mainFunction · 0.70

Calls 4

infoFunction · 0.70
logFunction · 0.70
lowerMethod · 0.45
removedirMethod · 0.45

Tested by

no test coverage detected