|
|
@ -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, |
|
|
|
}) |
|
|
|
}) |
|
|
|