mirror of
https://github.com/Stone-Red-Code/dvc.git
synced 2026-11-28 07:18:29 +01:00
dvc: initial unittests
Initial unittests for new design. Signed-off-by: Ruslan Kuprieiev <[email protected]>
This commit is contained in:
@@ -32,15 +32,6 @@ def cached_property(func):
|
||||
return property(get)
|
||||
|
||||
|
||||
def rmtree(directory):
|
||||
'''Cross platform rmtree()'''
|
||||
if os.name == 'nt':
|
||||
if os.path.exists(directory) and not os.access(directory, os.W_OK):
|
||||
os.chmod(directory, stat.S_IWUSR)
|
||||
|
||||
shutil.rmtree(directory, ignore_errors=True)
|
||||
|
||||
|
||||
def copyfile(src, dest):
|
||||
'''Copy file with progress bar'''
|
||||
copied = 0
|
||||
|
||||
Reference in New Issue
Block a user