Maui android delete a file from AppDataDirectory

Haviv Elbsz 2,071 Reputation points
2023-02-16T20:34:18.45+00:00

Hello all. When delete a file from AppDataDirectory I need to restart application to see that the file is deleted. is there a way to fix that so I can see that without restarting the application. Thank you very much.

.NET MAUI
.NET MAUI
A Microsoft open-source framework for building native device applications spanning mobile, tablet, and desktop.
4,026 questions
{count} votes

Accepted answer
  1. Alessandro Caliaro 4,196 Reputation points
    2023-02-16T21:02:56.46+00:00

    I think you can check with

    System.IO.File.Exists

    1 person found this answer helpful.

0 additional answers

Sort by: Most helpful

Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.