Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

iOS: Incorrect Storage Space Values Reported #12

Open
manishpatel6314 opened this issue Nov 5, 2024 · 0 comments
Open

iOS: Incorrect Storage Space Values Reported #12

manishpatel6314 opened this issue Nov 5, 2024 · 0 comments

Comments

@manishpatel6314
Copy link

Current Behavior

Currently, the iOS implementation of the storage_space plugin shows incorrect storage values:

  1. Device Settings shows 128GB total storage
  2. Plugin reports approximately 104GB total storage
  3. Similar discrepancy in free space values

Example values from testing:

  • Device total storage (Settings): 128GB
  • Plugin reported storage: 104GB
  • Actual value received: 112418697216 bytes

Root Cause

The discrepancy occurs because:

  1. Current implementation uses FileManager with NSHomeDirectory():
let attributes = try FileManager.default.attributesOfFileSystem(forPath: NSHomeDirectory())
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant