MCPcopy Index your code
hub / github.com/RustPython/RustPython / _dont_follow_symlinks

Function _dont_follow_symlinks

Lib/tempfile.py:273–278  ·  view source on GitHub ↗
(func, path, *args)

Source from the content-addressed store, hash-verified

271 "No usable temporary file name found")
272
273def _dont_follow_symlinks(func, path, *args):
274 # Pass follow_symlinks=False, unless not supported on this platform.
275 if func in _os.supports_follow_symlinks:
276 func(path, *args, follow_symlinks=False)
277 elif not _os.path.islink(path):
278 func(path, *args)
279
280def _resetperms(path):
281 try:

Callers 1

_resetpermsFunction · 0.85

Calls 2

islinkMethod · 0.80
funcFunction · 0.50

Tested by

no test coverage detected