summaryrefslogtreecommitdiffstats
path: root/fb
diff options
context:
space:
mode:
authorFlorian Pritz <bluewind@xssn.at>2009-09-02 19:22:12 +0200
committerFlorian Pritz <bluewind@xssn.at>2009-09-02 19:22:12 +0200
commitb2fe80e07ca4363c0707d161f664d75e5e391422 (patch)
tree5cee97a3347ee8e93299df8b2fd3af03d59f6c62 /fb
parent7fc769e425858bee31d08308ba3c5a522c71b157 (diff)
downloadbin-b2fe80e07ca4363c0707d161f664d75e5e391422.tar.gz
bin-b2fe80e07ca4363c0707d161f664d75e5e391422.tar.xz
fb: fix tmpfile removal
Signed-off-by: Florian Pritz <bluewind@xssn.at>
Diffstat (limited to 'fb')
-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()