515
515
except (IOError, OSError),e:
516
516
self._translate_error(e, path)
518
def link(self, source, link_name):
519
"""See Transport.link."""
521
os.link(self._abspath(source),
522
self._abspath(link_name))
524
except AttributeError:
525
raise errors.TransportNotPossible("Hardlinks are not supported on %s" % self)
526
except (IOError, OSError), e:
527
self._translate_error(e, source)
518
if osutils.hardlinks_good():
519
def link(self, source, link_name):
520
"""See Transport.link."""
522
os.link(self._abspath(source),
523
self._abspath(link_name))
525
except (IOError, OSError), e:
526
self._translate_error(e, source)
529
528
def symlink(self, source, link_name):
530
529
"""See Transport.symlink."""