r""" Return True if the given path is pointing to the root of the file system ("/" on Unix and "C:\\" on Windows for example).
(p: Path)
| 343 | |
| 344 | |
| 345 | def is_fs_root(p: Path) -> bool: |
| 346 | r""" |
| 347 | Return True if the given path is pointing to the root of the |
| 348 | file system ("/" on Unix and "C:\\" on Windows for example). |
| 349 | """ |
| 350 | return os.path.splitdrive(str(p))[1] == os.sep |
no outgoing calls