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
Signature | hs.fs.volume.didMount |
---|---|
Type | Constant |
Description | A volume was mounted |
Signature | hs.fs.volume.didRename |
---|---|
Type | Constant |
Description | A volume changed either its name or mountpoint (or more likely, both) |
Signature | hs.fs.volume.didUnmount |
---|---|
Type | Constant |
Description | A volume was unmounted |
Signature | hs.fs.volume.willUnmount |
---|---|
Type | Constant |
Description | A volume is about to be unmounted |
Signature | hs.fs.volume.allVolumes([showHidden]) -> table |
---|---|
Type | Function |
Description | Returns a table of information about disk volumes attached to the system Parameters:
Returns:
Notes:
|
Signature | hs.fs.volume.eject(path) -> boolean,string |
---|---|
Type | Function |
Description | Unmounts and ejects a volume Parameters:
Returns:
|
Signature | hs.fs.volume.new(fn) -> watcher |
---|---|
Type | Constructor |
Description | Creates a watcher object for volume events Parameters:
Returns:
|
Signature | hs.fs.volume:start() |
---|---|
Type | Method |
Description | Starts the volume watcher Parameters:
Returns:
|
Signature | hs.fs.volume:stop() |
---|---|
Type | Method |
Description | Stops the volume watcher Parameters:
Returns:
|