From b2fe80e07ca4363c0707d161f664d75e5e391422 Mon Sep 17 00:00:00 2001 From: Florian Pritz Date: Wed, 2 Sep 2009 19:22:12 +0200 Subject: fb: fix tmpfile removal Signed-off-by: Florian Pritz --- fb | 10 +--------- 1 file changed, 1 insertion(+), 9 deletions(-) (limited to 'fb') 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() -- cgit v1.2.3-24-g4f1b