Feature or enhancement
Proposal:
os.link() can call linkat() but it only supports AT_SYMLINK_FOLLOW flag (follow_symlinks=True), it doesn't support AT_EMPTY_PATH. I propose adding the os.linkat() function to create a hard link with flags, and add the following constants:
- os.AT_FDCWD
- os.AT_SYMLINK_FOLLOW
- os.AT_EMPTY_PATH
AT_EMPTY_PATH allows creating a hard link from an unnamed name even if /proc is not mounted.
Has this already been discussed elsewhere?
No response given
Links to previous discussion of this feature:
#136156
Linked PRs
Feature or enhancement
Proposal:
os.link()can calllinkat()but it only supportsAT_SYMLINK_FOLLOWflag (follow_symlinks=True), it doesn't supportAT_EMPTY_PATH. I propose adding the os.linkat() function to create a hard link with flags, and add the following constants:AT_EMPTY_PATHallows creating a hard link from an unnamed name even if/procis not mounted.Has this already been discussed elsewhere?
No response given
Links to previous discussion of this feature:
#136156
Linked PRs