BR: isOnRemovableDrive() inconsistent for USB storage devices

I’ve just found that on macOS, File::isOnRemovableDrive() returns true for a USB stick of a few GB but yields false for an external hard disk of 1 TB.

Yet, macOS knows that both are actually external devices, because they show up as ejectable in Finder. Can we get the same information returned by isOnRemovableDrive() ?