AdvancedSharpAdbClient
AdvancedSharpAdbClient copied to clipboard
System.ArgumentOutOfRangeException: ''
What can we do for you?
When I'm using GetDirectoryListing for the second time, it shows me an empty exception. What's wrong?
Please use this template if you find a bug. Or please tell us which version of nuget package and dotnet platform you used.
is this a bug or i'm doing something wrong?? Latest version, dotnet core 6
It's a bug. But I don't know how to fix it. You can renew the class and it will functional...
SyncService service = new SyncService(client, device);
var a = service.GetDirectoryListing("/");
service = new SyncService(client, device);
var b = service.GetDirectoryListing("/sdcard");
try to call service.Open(), like this
SyncService service = new SyncService(client, device);
var a = service.GetDirectoryListing("/");
service.Open();
var b = service.GetDirectoryListing("/sdcard");
try to call service.Open(), like this
SyncService service = new SyncService(client, device); var a = service.GetDirectoryListing("/"); service.Open(); var b = service.GetDirectoryListing("/sdcard");
Sorry, it's not functional 🤣. The SyncService can only use once. It will get nothing if you try to use it in second time...