MCPcopy Index your code
hub / github.com/python/cpython / _resetperms

Function _resetperms

Lib/tempfile.py:276–283  ·  view source on GitHub ↗
(path)

Source from the content-addressed store, hash-verified

274 func(path, *args)
275
276def _resetperms(path):
277 try:
278 chflags = _os.chflags
279 except AttributeError:
280 pass
281 else:
282 _dont_follow_symlinks(chflags, path, 0)
283 _dont_follow_symlinks(_os.chmod, path, 0o700)
284
285
286# User visible interfaces.

Callers 1

onexcMethod · 0.85

Calls 1

_dont_follow_symlinksFunction · 0.85

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…