zut.files.BaseOpenTempContext
- class zut.files.BaseOpenTempContext(path: T_NormalizedPath, mode: str = 'r', buffering: int = -1, encoding: str | None = None, errors: str | None = None, newline: str | None = None)
Bases:
Generic
[T_NormalizedPath
]- __init__(path: T_NormalizedPath, mode: str = 'r', buffering: int = -1, encoding: str | None = None, errors: str | None = None, newline: str | None = None)
- Parameters:
path – Must have been normalized (as a string) before instanciation of this class.
Methods
__init__
(path[, mode, buffering, encoding, ...])after_close_temp
()before_open_temp
()Attributes
is_reading
is_writing