FileSystem.RootDirectories Property
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Returns an object to iterate over the paths of the root directories.
public abstract Java.Lang.IIterable? RootDirectories { [Android.Runtime.Register("getRootDirectories", "()Ljava/lang/Iterable;", "GetGetRootDirectoriesHandler", ApiSince=26)] get; }
[<get: Android.Runtime.Register("getRootDirectories", "()Ljava/lang/Iterable;", "GetGetRootDirectoriesHandler", ApiSince=26)>]
member this.RootDirectories : Java.Lang.IIterable
Property Value
An object to iterate over the root directories
- Attributes
Remarks
Returns an object to iterate over the paths of the root directories. A file system provides access to a file store that may be composed of a number of distinct file hierarchies, each with its own top-level root directory. Unless denied by the security manager, each element in the returned iterator corresponds to the root directory of a distinct file hierarchy. The order of the elements is not defined. The file hierarchies may change during the lifetime of the Java virtual machine. For example, in some implementations, the insertion of removable media may result in the creation of a new file hierarchy with its own top-level directory. There is no guarantee that a root directory can be accessed. When a security manager is installed, it is invoked to check access to the each root directory. If denied, the root directory is not returned by the iterator. In the case of the default provider, the SecurityManager.checkRead(String) method is invoked to check read access to each root directory. It is system dependent if the permission checks are done when the iterator is obtained or during iteration.
Java reference for java.nio.file.FileSystem.getRootDirectories.
Portions of this page are modifications based on work created and shared by the Android Open Source Project and used according to terms described in the Creative Commons 2.5 Attribution License.