164 |
def set_hardlinks(self, testdir): |
def set_hardlinks(self, testdir): |
165 |
"""Set self.hardlinks to true iff hard linked files can be made""" |
"""Set self.hardlinks to true iff hard linked files can be made""" |
166 |
hl_source = testdir.append("hardlinked_file1") |
hl_source = testdir.append("hardlinked_file1") |
167 |
hl_dest = testdir.append("hardlinked_file2") |
hl_dir = testdir.append("hl") |
168 |
|
hl_dir.mkdir() |
169 |
|
hl_dest = hl_dir.append("hardlinked_file2") |
170 |
hl_source.touch() |
hl_source.touch() |
171 |
try: |
try: |
172 |
hl_dest.hardlink(hl_source.path) |
hl_dest.hardlink(hl_source.path) |