Filesystem adapter: negative size is displayed for large files under win32.
git-svn-id: http://redmine.rubyforge.org/svn/trunk@1509 e93f8b46-1217-0410-a6f0-8f06a7374b81
This commit is contained in:
parent
e69b4647f2
commit
5dea200774
|
@ -60,8 +60,7 @@ module Redmine
|
||||||
# below : list unreadable files, but dont link them.
|
# below : list unreadable files, but dont link them.
|
||||||
:path => File.readable?(target) ? relative_path : "",
|
:path => File.readable?(target) ? relative_path : "",
|
||||||
:kind => (File.directory?(target) ? 'dir' : 'file'),
|
:kind => (File.directory?(target) ? 'dir' : 'file'),
|
||||||
:size => if (File.directory?(target))
|
:size => (File.directory?(target) ? nil : [File.size(target)].pack('l').unpack('L').first),
|
||||||
nil else File.size(target) end,
|
|
||||||
:lastrev =>
|
:lastrev =>
|
||||||
Revision.new({:time => (File.mtime(target)).localtime,
|
Revision.new({:time => (File.mtime(target)).localtime,
|
||||||
})
|
})
|
||||||
|
|
Loading…
Reference in New Issue