Skip to content

os.chmod() on Windows doesn't follow symlinks by default #11774

Closed
@nineteendo

Description

@nineteendo

I just read python/cpython#113188 which states the following:

os.chmod() still does not follow symlinks by default on Windows

But the stubs say otherwise:

def chmod(path: FileDescriptorOrPath, mode: int, *, dir_fd: int | None = None, follow_symlinks: bool = True) -> None: ...

We should just use an ellipsis here:

def chmod(path: FileDescriptorOrPath, mode: int, *, dir_fd: int | None = None, follow_symlinks: bool = ...) -> None: ...

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions