-
-
Notifications
You must be signed in to change notification settings - Fork 33.6k
Open
Labels
extension-modulesC modules in the Modules dirC modules in the Modules dirtype-featureA feature request or enhancementA feature request or enhancement
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
Links to previous discussion of this feature:
Linked PRs
Metadata
Metadata
Assignees
Labels
extension-modulesC modules in the Modules dirC modules in the Modules dirtype-featureA feature request or enhancementA feature request or enhancement