ID EN
Pathlib

is_reserved

Python 3.11 🇮🇩 Bahasa Indonesia

Dengan PureWindowsPath, kembalikan True jika jalur dianggap dicadangkan di Windows, False jika tidak. Dengan PurePosixPath, False selalu dikembalikan.

Syntax

PYTHON
PurePath.is_reserved()

Contoh

Example 1
PYTHON
>>> PureWindowsPath('nul').is_reserved()
True
>>> PurePosixPath('nul').is_reserved()
False

See Also

PureWindowsPath PurePosixPath