Skip to content

Commit

Permalink
Add implementation comments
Browse files Browse the repository at this point in the history
  • Loading branch information
complexspaces committed Oct 30, 2022
1 parent d4b4055 commit a4e6255
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/apple/disk.rs
Expand Up @@ -126,6 +126,10 @@ pub(super) unsafe fn get_disks() -> Vec<Disk> {
None => continue,
};

// Future note: There is a difference between `kCFURLVolumeIsBrowsableKey` and the
// `kCFURLEnumeratorSkipInvisibles` option of `CFURLEnumeratorOptions`. Specifically,
// the first one considers the writable `Data`(`/System/Volumes/Data`) partition to be
// browsable, while it is classified as "invisible" by CoreFoundation's volume emumerator.
let browsable = get_bool_value(
prop_dict.inner(),
DictKey::Extern(ffi::kCFURLVolumeIsBrowsableKey),
Expand Down

0 comments on commit a4e6255

Please sign in to comment.