[Mono-bugs] [Bug 684746] New: FileInfo.CreationTime returns last modified time instead of creation time

bugzilla_noreply at novell.com bugzilla_noreply at novell.com
Sat Apr 2 12:28:05 EDT 2011


https://bugzilla.novell.com/show_bug.cgi?id=684746

https://bugzilla.novell.com/show_bug.cgi?id=684746#c0


           Summary: FileInfo.CreationTime returns last modified time
                    instead of creation time
    Classification: Mono
           Product: Mono: Class Libraries
           Version: 2.8.x
          Platform: Macintosh
        OS/Version: Other
            Status: NEW
          Severity: Critical
          Priority: P5 - None
         Component: Sys.Core
        AssignedTo: jbevain at novell.com
        ReportedBy: dmojnk at gmail.com
         QAContact: mono-bugs at lists.ximian.com
          Found By: ---
           Blocker: ---


User-Agent:       Mozilla/5.0 (Macintosh; U; Intel Mac OS X 10_6_6; en-US)
AppleWebKit/534.16 (KHTML, like Gecko) Chrome/10.0.648.204 Safari/534.16

The accessors:

FileInfo.CreationTime
FileInfo.CreationTimeUtc

do not return the creation time listed by the filesystem - instead they return
the last modified time.

I have only tested this on MacOS Snow Leopard.  The .NET versions of these
methods return the actual creation time listed by the filesystem.



Reproducible: Always

Steps to Reproduce:
1. Write a program that uses FileInfo.CreationTime and prints out the value for
a file
2. Compare that value against what is reported by the filesystem

Actual Results:  
BUG: The value is actually the last modified time - not the creationtime.

Expected Results:  
I expect to get the file creation time as listed by the filesystem.

-- 
Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the QA contact for the bug.


More information about the mono-bugs mailing list