klyn.io.Path.roots
method
public static roots() as ArrayList<FolderPath>:
Description

Lists the filesystem roots exposed by the current operating system.

Windows returns every logical drive known by the system (C:/, D:/, mapped network drives, and so on). Unix-like systems return /. A listed removable drive may still be unavailable when it has no media.

Returns

Filesystem roots as directory paths.

Example
import klyn.io

for root in Path.roots():
print(root)