'L{FilePath.copyTo} makes a copy of all the contents of the directory
named by that L{FilePath} if it is able to do so.'

def test_copyToDirectory(self):

    oldPaths = list(self.path.walk())
    fp = filepath.FilePath(self.mktemp())
    self.path.copyTo(fp)
    self.path.remove()
    fp.copyTo(self.path)
    newPaths = list(self.path.walk())
    newPaths.sort()
    oldPaths.sort()
    self.assertEqual(newPaths, oldPaths)
