#
hs.fs.volume
Interact with OS X filesystem volumes
This is distinct from hs.fs in that hs.fs deals with UNIX filesystem operations, while hs.fs.volume interacts with the higher level OS X concept of volumes
#
API Overview
Constants - Useful values which cannot be changed
didMount didRename didUnmount willUnmount
Functions - API calls offered directly by the extension
allVolumes eject
Constructors - API calls which return an object, typically one that offers API methods
new
Methods - API calls which can only be made on an object returned by a constructor
start stop
#
API Documentation
#
Constants
#
didMount
#
didRename
#
didUnmount
#
willUnmount
#
Functions
#
allVolumes
#
eject
#
Constructors
#
new
| | |
| --------------------------------------------|-------------------------------------------------------------------------------------|
| Signature | hs.fs.volume.new(fn) -> watcher
|
| Type | Constructor |
| Description | Creates a watcher object for volume events |
| Parameters |
- fn - A function that will be called when volume events happen. It should accept two parameters: An event type (see the constants defined above) A table that will contain relevant information
- An
hs.fs.volume
object