Product SiteDocumentation Site

5.4.25.3. listRoots (Class Method)


>>-listRoots---------------------------------------------------><

Returns the file system root elements, as an array of string. On Windows, each of the drives is a root element (Ex : "C:\"). On Unix, there is just one root ("/").

Example 5.202. Class FILE


say .File~listRoots~toString
/* Possible output on Windows : /*
C:\
D:\
E:\
R:\