MCPcopy Create free account
hub / github.com/tox-dev/filelock / has_explicit_mode

Method has_explicit_mode

src/filelock/_api.py:368–370  ·  view source on GitHub ↗

Whether the file permissions were explicitly set.

(self)

Source from the content-addressed store, hash-verified

366
367 @property
368 def has_explicit_mode(self) -> bool:
369 """Whether the file permissions were explicitly set."""
370 return self._context.mode != _UNSET_FILE_MODE
371
372 def _open_mode(self) -> int:
373 """:returns: the mode for os.open() — 0o666 when unset (let umask/ACLs decide), else the explicit mode"""

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected