File System
The information refer to the file system of the device
Original source
The file system information are retrieved from OperatingSystem.FileSystem interface
KInfo's source
Properties
fileStores
List of file stores available in the system
openFileDescriptors
The current number of open file descriptors for the system. This is the number of files currently opened by processes
val openFileDescriptors: Long = fileSystem.openFileDescriptors
println(openFileDescriptors) // e.g. 1200
maxFileDescriptors
The maximum number of file descriptors available for the entire system. This is the upper limit of file descriptors the system can handle at once
val maxFileDescriptors: Long = fileSystem.maxFileDescriptors
println(maxFileDescriptors) // e.g. 16777216
maxFileDescriptorsPerProcess
The maximum number of file descriptors available per process. This is the upper limit of file descriptors a single process can handle at once
val maxFileDescriptorsPerProcess: Long = fileSystem.maxFileDescriptorsPerProcess
println(maxFileDescriptorsPerProcess) // e.g. 8192
Methods
getFileStores
Method used to retrieve the file stores of the system
Parameters
- localOnly
:Boolean- A flag to indicate whether to return only local file stores (true) or all file stores (false)
Interfaces
- OSFileStore - Represents a file store (such as a disk or mount point) in the operating system