Skip to content

Commit cfdfcaa

Browse files
committed
Python: Support Path.hardlink_to (new in 3.10)
See https://docs.python.org/3.10/library/pathlib.html#pathlib.Path.hardlink_to
1 parent 5d60975 commit cfdfcaa

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

python/ql/lib/semmle/python/frameworks/Stdlib.qll

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1452,7 +1452,7 @@ private module StdlibPrivate {
14521452
"is_symlink", "is_socket", "is_fifo", "is_block_device", "is_char_device", "iter_dir",
14531453
"lchmod", "lstat", "mkdir", "open", "owner", "read_bytes", "read_text", "readlink",
14541454
"rename", "replace", "resolve", "rglob", "rmdir", "samefile", "symlink_to", "touch",
1455-
"unlink", "link_to", "write_bytes", "write_text"
1455+
"unlink", "link_to", "write_bytes", "write_text", "hardlink_to"
14561456
] and
14571457
pathlibPath().flowsTo(fileAccess.getObject()) and
14581458
fileAccess.(DataFlow::LocalSourceNode).flowsTo(this.getFunction())

0 commit comments

Comments
 (0)