equal
deleted
inserted
replaced
284 break |
284 break |
285 head, tail = os.path.split(head) |
285 head, tail = os.path.split(head) |
286 |
286 |
287 def unlinkpath(f): |
287 def unlinkpath(f): |
288 """unlink and remove the directory if it is empty""" |
288 """unlink and remove the directory if it is empty""" |
289 os.unlink(f) |
289 unlink(f) |
290 # try removing directories that might now be empty |
290 # try removing directories that might now be empty |
291 try: |
291 try: |
292 _removedirs(os.path.dirname(f)) |
292 _removedirs(os.path.dirname(f)) |
293 except OSError: |
293 except OSError: |
294 pass |
294 pass |