This commit is contained in:
Mike McLean 2016-06-01 16:31:45 -04:00
parent 7b480adeb1
commit 03c3be7125

View file

@ -26,6 +26,7 @@ import os
import os.path
import re
import resource
import shutil
import stat
import sys
import time
@ -316,6 +317,13 @@ def rmtree(path):
continue
os.rmdir(dirpath)
def safe_move(src, dst):
"""Wrapper around shutil.move with additional safety"""
pass
def _relpath(path, start=getattr(os.path, 'curdir', '.')):
"""Backport of os.path.relpath for python<2.6"""