[ Index ] |
PHP Cross Reference of Unnamed Project |
[Summary view] [Print] [Text view]
1 # -*- coding: utf-8 -*- 2 import os 3 4 def touch (path): 5 """ 6 Create an empty file 7 """ 8 try: 9 file = open (path, 'w') 10 file.close() 11 except: pass 12 13 def remove (path): 14 """ 15 Del user profile 16 """ 17 try: 18 for root, dirs, files in os.walk (path, False): 19 for name in files: 20 os.remove (os.path.join (root, name)) 21 for name in dirs: 22 os.rmdir (os.path.join (root, name)) 23 os.rmdir (path) 24 except: pass 25
title
Description
Body
title
Description
Body
title
Description
Body
title
Body
Generated: Tue Mar 17 22:47:18 2015 | Cross-referenced by PHPXref 0.7.1 |