This commit is contained in:
Ajay 2026-02-02 11:09:21 +05:30 committed by GitHub
commit 39d35f9d4b
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -25,6 +25,9 @@ from pathlib import Path
def is_hidden(path: bytes | Path) -> bool:
"""
Determine whether the given path is treated as a 'hidden file' by the OS.
Note: A platform-specific check is performed on each invocation. Bytes
inputs are supported for backward compatibility.
"""
if isinstance(path, bytes):