*Not documented*
def copy(self, target, archive=False):
origin: path.local
where:
function source:
def copy(self, target, archive=False):
assert not archive, "XXX archive-mode not supported"
if self.check(file=1):
if target.check(dir=1):
target = target.join(self.basename)
assert self!=target
copychunked(self, target)
else:
target.ensure(dir=1)
def rec(p):
return p.check(link=0)
for x in self.visit(rec=rec):
relpath = x.relto(self)
newx = target.join(relpath)
if x.check(link=1):
newx.mksymlinkto(x.readlink())
elif x.check(file=1):
copychunked(x, newx)
elif x.check(dir=1):
newx.ensure(dir=1)
called in /home/johnny/projects/merlinux/py/dist/py/rest/convert.py
called in /home/johnny/projects/merlinux/py/dist/py/rest/convert.py
called in /home/johnny/projects/merlinux/py/dist/py/rest/convert.py
called in /home/johnny/projects/merlinux/py/dist/py/path/testing/fscommon.py
called in /home/johnny/projects/merlinux/py/dist/py/rest/convert.py
called in /home/johnny/projects/merlinux/py/dist/py/path/svn/testing/svntestbase.py
called in /home/johnny/projects/merlinux/py/dist/py/test/testing/test_collect.py
called in /home/johnny/projects/merlinux/py/dist/py/path/testing/fscommon.py
called in /home/johnny/projects/merlinux/py/dist/py/documentation/test_conftest.py
called in /home/johnny/projects/merlinux/py/dist/py/path/svn/testing/svntestbase.py
called in /home/johnny/projects/merlinux/py/dist/py/documentation/test_conftest.py
called in /home/johnny/projects/merlinux/py/dist/py/rest/convert.py