diff --git a/bcolz/ctable.py b/bcolz/ctable.py index 3cb4ee5e..2813b645 100644 --- a/bcolz/ctable.py +++ b/bcolz/ctable.py @@ -491,7 +491,7 @@ def addcol(self, newcol, name=None, pos=None, move=False, **kwargs): shutil.move(newcol.rootdir, col_rootdir) newcol.rootdir = col_rootdir else: # copy the the carray - shutil.copytree(newcol.rootdir, col_rootdir) + newcol = newcol.copy(rootdir=col_rootdir) elif isinstance(newcol, (np.ndarray, bcolz.carray)): newcol = bcolz.carray(newcol, **kwargs) elif type(newcol) in (list, tuple):