MCPcopy Create free account
hub / github.com/RT-Thread/env-windows / _dont_follow_symlinks

Function _dont_follow_symlinks

tools/python-3.11.9-amd64/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 _os.name == 'nt' or not _os.path.islink(path):
278 func(path, *args)
279
280def _resetperms(path):
281 try:

Callers 1

_resetpermsFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected