You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Recently I received a crash report on an iOS device caused by a .DeleteAsync() operation on a folder.
I think this is the result of a new file being added to the folder just moments after the delete procedure was started.
Something like this seems plausible to me:
call to IFolder.DeleteAsync()
this will recursively delete all files in folder
new file is added to folder
.DeleteAsync() tries to delete the folder, but it is not empty because of the new file -> exception is thrown
This is (part of) the crash report I received: System.IO.Directory.Delete(string path)
System.IO.Directory.RecursiveDelete(string path)
System.IO.Directory.Delete(string path, bool recursive)
PCLStorage.FileSystemFolder.d__26.MoveNext()
The text was updated successfully, but these errors were encountered:
I am deleting one folder with name Ex. "FolderABC"
Then I unzip one zip file downloaded from server as name "FolderABC"
Then I am getting following two exceptions (These exceptions are produced in live app only. Debug mode working fine.):
System.IO.DirectoryNotFoundException Could not find a part of the path : 'my directory path'
System.IO.Directory.GetFiles(string path)
System.IO.Directory.RecursiveDelete(string path)
System.IO.Directory.Delete(string path, bool recursive)
PCLStorage.FileSystemFolder.d__26.MoveNext()
PCLStorage.Exceptions.DirectoryNotFoundException Directory does not exist: /var/mobile/Containers/Data/Application/BD5E7133-EF29-4714-B533-84F92BCBF06E/Documents/MyFolder/FolderABC
PCLStorage.FileSystemFolder.EnsureExists()
PCLStorage.FileSystemFolder.d__26.MoveNext()
Is there any workaround to solve this immediately?
Recently I received a crash report on an iOS device caused by a .DeleteAsync() operation on a folder.
I think this is the result of a new file being added to the folder just moments after the delete procedure was started.
Something like this seems plausible to me:
This is (part of) the crash report I received:
System.IO.Directory.Delete(string path)
System.IO.Directory.RecursiveDelete(string path)
System.IO.Directory.Delete(string path, bool recursive)
PCLStorage.FileSystemFolder.d__26.MoveNext()
The text was updated successfully, but these errors were encountered: