FileSystem

interface FileSystem

FileSystem Represents the file system details of an operating system, providing information about file stores, file descriptors, and associated file system attributes.

Author

N7ghtm4r3

See also

Inheritors

FileSystemImpl

Properties

Link copied to clipboard
abstract val fileStores: List<OSFileStore>

fileStores A list of file stores available in the system. Each file store represents a distinct filesystem, such as an external drive or network storage.

Link copied to clipboard
abstract val maxFileDescriptors: Long

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.

Link copied to clipboard

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.

Link copied to clipboard

openFileDescriptors The current number of open file descriptors for the system. This is the number of files currently opened by processes.

Functions

Link copied to clipboard
abstract fun getFileStores(localOnly: Boolean): List<OSFileStore>

getFileStores A function to retrieve the file stores of the system. This method can filter to return only local file stores if specified.