Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

FileSystemInfo.LastWriteTimeUtc throws on Linux if folder doesn't exist #19864

Closed
mregen opened this issue Jan 10, 2017 · 1 comment
Closed
Labels
area-System.IO bug os-linux Linux OS (any supported distro) tenet-compatibility Incompatibility with previous versions or .NET Framework
Milestone

Comments

@mregen
Copy link

mregen commented Jan 10, 2017

FileSystemInfo.LastWriteTimeUtc behaves different on Windows and Ubuntu 16.04:

see: OPCFoundation/UA-.NETStandard#112

Set FileSystemInfo to a path that doesn't exist, then call LastWriteTimeUtc.

On Windows it returns something like 1.1.1600,

On Linux it throws exception

expected: windows behaviour or at least similar behaviour on both OS.

@ianhays
Copy link
Contributor

ianhays commented Jan 11, 2017

Hey @mregen, we've already got an issue for this (https://github.com/dotnet/corefx/issues/1728) so I'm going to close this one as it is a duplicate. Feel free to re-open 1728 or comment there if you'd like to continue the discussion.

Thanks!

@ianhays ianhays closed this as completed Jan 11, 2017
@msftgits msftgits transferred this issue from dotnet/corefx Jan 31, 2020
@msftgits msftgits added this to the 2.0.0 milestone Jan 31, 2020
@ghost ghost locked as resolved and limited conversation to collaborators Dec 26, 2020
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
area-System.IO bug os-linux Linux OS (any supported distro) tenet-compatibility Incompatibility with previous versions or .NET Framework
Projects
None yet
Development

No branches or pull requests

3 participants