Open
Description
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