Skip to content

Crash on IFolder.DeleteAsync() #65

@crates-barrels

Description

@crates-barrels

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:

  1. call to IFolder.DeleteAsync()
  2. this will recursively delete all files in folder
  3. new file is added to folder
  4. .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()

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions