get_root_path#
- get_root_path() CloudPath | Path [source]#
Deprecated since version 1.30.0: Import it from
sertit.path
instead ofsertit.files
Get the root path of the current disk:
On Linux this returns
/
On Windows this returns
C:/
or whatever the current drive is
Example
>>> get_root_path() "/" on Linux "C:/" on Windows (if you run this code from the C: drive)