diff options
-rwxr-xr-x | fb | 10 |
1 files changed, 1 insertions, 9 deletions
@@ -110,15 +110,7 @@ def main(): os.chdir('/tmp') for path in tmpfiles: - if os.path.isfile(path): - os.remove(path) - else: - for file in os.listdir(path): - os.remove(path+'/'+file) - # FIXME: causes getcwd error - #os.rmdir(path) - # for some reason this works better - Popen(['rmdir', path]) + Popen(['rm', '-rf', path]) if __name__ == '__main__': main() |