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 23, 2022
1 parent 6251d7c commit 817ccc2
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/apple/disk.rs
Expand Up @@ -130,6 +130,10 @@ unsafe fn get_disk_inner() -> 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 817ccc2

Please sign in to comment.