63
63
symlink_target = tree.get_symlink_target(ie.file_id)
64
64
os.symlink(symlink_target, fullpath)
67
67
"Failed to create symlink %r -> %r, error: %s"
68
68
% (fullpath, symlink_target, e))
70
70
raise errors.BzrError("don't know how to export {%s} of kind %r" %
72
74
# The data returned here can be in any order, but we've already created all
74
76
flags = os.O_CREAT | os.O_TRUNC | os.O_WRONLY | getattr(os, 'O_BINARY', 0)
75
77
for (relpath, executable), chunks in tree.iter_files_bytes(to_fetch):
80
78
fullpath = osutils.pathjoin(dest, relpath)
81
79
# We set the mode and let the umask sort out the file info