Skip to content

Instantly share code, notes, and snippets.

@zzamboni
Created June 6, 2020 15:28
Show Gist options
  • Save zzamboni/9dbc472af927bebed2ba59e5e45ac340 to your computer and use it in GitHub Desktop.
Save zzamboni/9dbc472af927bebed2ba59e5e45ac340 to your computer and use it in GitHub Desktop.
> hs.inspect(hs.fs.volume.allVolumes())
{
["/"] = {
NSURLVolumeAvailableCapacityKey = 575475691520,
NSURLVolumeIsAutomountedKey = false,
NSURLVolumeIsBrowsableKey = true,
NSURLVolumeIsEjectableKey = false,
NSURLVolumeIsInternalKey = true,
NSURLVolumeIsLocalKey = true,
NSURLVolumeIsReadOnlyKey = false,
NSURLVolumeIsRemovableKey = false,
NSURLVolumeLocalizedFormatDescriptionKey = "APFS (Encrypted)",
NSURLVolumeLocalizedNameKey = "Macintosh HD",
NSURLVolumeMaximumFileSizeKey = 9223372036854775807,
NSURLVolumeNameKey = "Macintosh HD",
NSURLVolumeTotalCapacityKey = 1000240963584,
NSURLVolumeUUIDStringKey = "DF68B4E9-FDA9-4808-9CF5-2958EA8609F9"
},
["/Volumes/Samsung_T5"] = {
NSURLVolumeAvailableCapacityKey = 606773981184,
NSURLVolumeIsAutomountedKey = false,
NSURLVolumeIsBrowsableKey = true,
NSURLVolumeIsEjectableKey = false,
NSURLVolumeIsInternalKey = false,
NSURLVolumeIsLocalKey = true,
NSURLVolumeIsReadOnlyKey = false,
NSURLVolumeIsRemovableKey = false,
NSURLVolumeLocalizedFormatDescriptionKey = "Mac OS Extended (Case-sensitive, Journaled)",
NSURLVolumeLocalizedNameKey = "Samsung_T5",
NSURLVolumeMaximumFileSizeKey = 9223372036854775807,
NSURLVolumeNameKey = "Samsung_T5",
NSURLVolumeTotalCapacityKey = 1999683715072,
NSURLVolumeUUIDStringKey = "34239833-18B7-3AB3-A8E3-3592DDBAE8AE"
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment