preview file/directory deletion
C / C++ / MFC
2
Posts
2
Posters
0
Views
1
Watching
-
Before actually calling DeleteFile or RemoveDirectory functions, I want to 'preview' file/directory removal to see if they succeed. Any ideas how to do this? thanks!
-
Before actually calling DeleteFile or RemoveDirectory functions, I want to 'preview' file/directory removal to see if they succeed. Any ideas how to do this? thanks!
Almostr always you will want to try if you can delete it, and if it fails evaluate the error code so you can make suggestions to the user. You can do basic checks (e.g. is the file read-only) However, you cannot test for all reasons why a delete may fail.
Some of us walk the memory lane, others plummet into a rabbit hole
Tree in C# || Fold With Us! || sighist