Skip to main content


Last updated March 2020


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


msys.os.statvfs_subscribe(path, interval);

path: string
interval: number


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?