Skip to main content

msys.os.statvfs_subscribe

Last updated March 2020

Name

msys.os.statvfs_subscribe — Provide a "stream" for file system statistics (statvfs) updates

Synopsis

msys.os.statvfs_subscribe(path, interval);

path: string
interval: number

Description

This function provides a "stream" for statvfs updates. It guarantees minimal blocking and it is safe to call this function from the context of any thread (including the scheduler). A ec_statvfs_record_t object is returned by the following call:

statvfs_record = msys.os.statvfs_subscribe("/tmp", 10)

This function is discussed in more detail in msys.os.statvfs_read.

Enable this function with the statement require('msys.os');.

See Also

Was this page helpful?