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 5, 2022
1 parent d2b466b commit 80b58de
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/apple/disk.rs
Expand Up @@ -128,6 +128,10 @@ pub(super) 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 = unsafe {
get_bool_value(
prop_dict.inner(),
Expand Down

0 comments on commit 80b58de

Please sign in to comment.