MCPcopy Index your code
hub / github.com/RustPython/RustPython / symlink_to

Method symlink_to

Lib/pathlib/__init__.py:1208–1213  ·  view source on GitHub ↗

Make this path a symlink pointing to the target path. Note the order of arguments (link, target) is the reverse of os.symlink.

(self, target, target_is_directory=False)

Source from the content-addressed store, hash-verified

1206
1207 if hasattr(os, "symlink"):
1208 def symlink_to(self, target, target_is_directory=False):
1209 """
1210 Make this path a symlink pointing to the target path.
1211 Note the order of arguments (link, target) is the reverse of os.symlink.
1212 """
1213 os.symlink(target, self, target_is_directory)
1214 else:
1215 def symlink_to(self, target, target_is_directory=False):
1216 """

Callers

nothing calls this directly

Calls 1

Tested by

no test coverage detected