mirror of
https://github.com/beetbox/beets.git
synced 2026-02-08 16:34:12 +01:00
Merge c6efc8c3e9 into cdfb813910
This commit is contained in:
commit
39d35f9d4b
1 changed files with 3 additions and 0 deletions
|
|
@ -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):
|
||||
|
|
|
|||
Loading…
Reference in a new issue