~bzr-pqm/bzr/bzr.dev

« back to all changes in this revision

Viewing changes to bzrlib/_walkdirs_win32.pyx

Merge in bzr.dev 3801, resolve NEWS

Show diffs side-by-side

added added

removed removed

Lines of Context:
81
81
    cdef readonly double st_ctime
82
82
    cdef readonly double st_mtime
83
83
    cdef readonly double st_atime
84
 
    cdef readonly __int64 st_size
 
84
    # We can't just declare this as 'readonly' because python2.4 doesn't define
 
85
    # T_LONGLONG as a structure member. So instead we just use a property that
 
86
    # will convert it correctly anyway.
 
87
    cdef __int64 _st_size
 
88
 
 
89
    property st_size:
 
90
        def __get__(self):
 
91
            return self._st_size
85
92
 
86
93
    # os.stat always returns 0, so we hard code it here
87
94
    cdef readonly int st_dev
180
187
        statvalue.st_ctime = _ftime_to_timestamp(&data.ftCreationTime)
181
188
        statvalue.st_mtime = _ftime_to_timestamp(&data.ftLastWriteTime)
182
189
        statvalue.st_atime = _ftime_to_timestamp(&data.ftLastAccessTime)
183
 
        statvalue.st_size = _get_size(data)
 
190
        statvalue._st_size = _get_size(data)
184
191
        statvalue.st_ino = 0
185
192
        statvalue.st_dev = 0
186
193
        return statvalue