Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add a follow_symlinks: bool option #10

Open
jwodder opened this issue Oct 11, 2023 · 0 comments
Open

Add a follow_symlinks: bool option #10

jwodder opened this issue Oct 11, 2023 · 0 comments
Labels
enhancement New feature or request therefor

Comments

@jwodder
Copy link
Owner

jwodder commented Oct 11, 2023

InPlace should gain a follow_symlinks: bool option for controlling whether to resolve any symbolic links in the input file path before opening the file for reading. Setting this to True (the default) will result in the same behavior as now. Setting this to False disables symlink resolution.

  • Note that this option only controls resolution of symlinks in the name argument; symlinks in the backup argument are never resolved by in-place.
  • Note that backup_ext is applied to the input file path after any symlink resolution is performed.

Note to self: Make use of the test cases from the Rust port for this.

@jwodder jwodder added the enhancement New feature or request therefor label Oct 11, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request therefor
Projects
None yet
Development

No branches or pull requests

1 participant