Anonymous - 2026-04-19

Originally posted by: Neighbor-Z

Hello @bexonpak,

Thank you for bringing this to attention. I really want the software to be stable across most MTP devices, but unfortunately I don't actually own a Nintendo Switch and I am not familiar with the technical details of that device.

Based on your description, I’m not sure if the Switch just doesn't provide valid total capacity data for storage, or is it just cannot be retrieved correctly through current method? If it’s the former, then the fix case let v as UInt64: return Int64(exactly: v) would be fine. Otherwise, things would be more complicated and tie into the backend.

I'm wondering if you are willing to checkout and contribute to the related repos https://github.com/Neighbor-Z/go-mtpx/ and https://github.com/Neighbor-Z/go-mtpfs/ which are the backend logics. I'm always willing to extend/enhance the support SwiftMTP could provide.