NuGet.PhysicalFileSystem.GetCreated C# (CSharp) Method

GetCreated() public method

public GetCreated ( string path ) : DateTimeOffset
path string
return DateTimeOffset
        public DateTimeOffset GetCreated(string path)
        {
            path = GetFullPath(path);
            if (File.Exists(path))
            {
                return File.GetCreationTimeUtc(path);
            }
            return Directory.GetCreationTimeUtc(path);
        }