(path='')
| 1 | import os, sys |
| 2 | |
| 3 | def main(path=''): |
| 4 | if len(sys.argv) == 1 and len(path) != 0: |
| 5 | try: |
| 6 | delete(path) |
| 7 | except: |
| 8 | print 'ERROR: Internal Path' |
| 9 | else: |
| 10 | try: |
| 11 | delete(' '.join(sys.argv[1:])) |
| 12 | except: |
| 13 | print os.path.basename(sys.argv[0]), '<directory>' |
| 14 | |
| 15 | def delete(path): |
| 16 | for name in os.listdir(path): |
no test coverage detected