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

LocalFileSystemProvider.GetSizeOnAllDisks throws "System.IO.IOException: The device is not ready" #16

Closed
maxkatz6 opened this issue Mar 2, 2019 · 3 comments
Labels
bug Something isn't working

Comments

@maxkatz6
Copy link
Contributor

maxkatz6 commented Mar 2, 2019

Stacktrace:

at System.IO.DriveInfo.get_AvailableFreeSpace()
at Camelotia.Services.Providers.LocalFileSystemProvider.<>c.b__29_0(DriveInfo x) in C:\Users\maxka\Source\Repos\Camelotia\Camelotia.Services\Providers\LocalFileSystemProvider.cs:line 116
at System.Linq.Enumerable.WhereSelectArrayIterator2.MoveNext() at System.Linq.Enumerable.Sum(IEnumerable1 source)
at Camelotia.Services.Providers.LocalFileSystemProvider.GetSizeOnAllDisks() in C:\Users\maxka\Source\Repos\Camelotia\Camelotia.Services\Providers\LocalFileSystemProvider.cs:line 115
at Camelotia.Services.Providers.LocalFileSystemProvider.get_Size() in C:\Users\maxka\Source\Repos\Camelotia\Camelotia.Services\Providers\LocalFileSystemProvider.cs:line 14
at Camelotia.Presentation.ViewModels.ProviderViewModel.get_Size() in C:\Users\maxka\Source\Repos\Camelotia\Camelotia.Presentation\ViewModels\ProviderViewModel.cs:line 281

image

@maxkatz6
Copy link
Contributor Author

maxkatz6 commented Mar 2, 2019

@worldbeater look like #3 doesn't fix every case.
I have card reader, and in case, when there is no any card in it, DriveInfo.IsReady = false.

@maxkatz6 maxkatz6 closed this as completed Mar 2, 2019
@maxkatz6
Copy link
Contributor Author

maxkatz6 commented Mar 2, 2019

Fixed :shipit:

@worldbeater worldbeater added the bug Something isn't working label May 16, 2019
@github-actions
Copy link

This issue has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs.

@github-actions github-actions bot locked as resolved and limited conversation to collaborators Jun 20, 2022
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants