summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rwxr-xr-xfb10
1 files changed, 1 insertions, 9 deletions
diff --git a/fb b/fb
index 67292e2..de8fdea 100755
--- a/fb
+++ b/fb
@@ -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()