Python: Support Path.hardlink_to (new in 3.10)

See https://docs.python.org/3.10/library/pathlib.html#pathlib.Path.hardlink_to
This commit is contained in:
Rasmus Wriedt Larsen
2021-11-15 14:57:59 +01:00
parent 5d60975f65
commit cfdfcaa3e8

View File

@@ -1452,7 +1452,7 @@ private module StdlibPrivate {
"is_symlink", "is_socket", "is_fifo", "is_block_device", "is_char_device", "iter_dir",
"lchmod", "lstat", "mkdir", "open", "owner", "read_bytes", "read_text", "readlink",
"rename", "replace", "resolve", "rglob", "rmdir", "samefile", "symlink_to", "touch",
"unlink", "link_to", "write_bytes", "write_text"
"unlink", "link_to", "write_bytes", "write_text", "hardlink_to"
] and
pathlibPath().flowsTo(fileAccess.getObject()) and
fileAccess.(DataFlow::LocalSourceNode).flowsTo(this.getFunction())