The documentation for System.IO.Directory.SetLastWriteTime() and System.IO.Directory.SetLastWriteTimeUtc() state that a FileNotFoundException is thrown when the path cannot be found. I am getting a DirectoryNotFoundException.
However, a FileNotFoundException is thrown when trying to call either of these methods with a file path as a parameter.
Document Details
⚠ Do not edit this section. It is required for docs.microsoft.com ➟ GitHub issue linking.