Skip to content

System.IO.Directory.SetLastWriteTime() Throws Incorrect Exception in API Documentation #6394

@jpreese

Description

@jpreese

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.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions