Feature Requests: Browse | Submit New | Admin

[#4316] Show total size of folder contents

Date:
2006-04-30 08:59
Priority:
1
Submitted By:
Mischa Berger (mischa78)
Assigned To:
Nobody (None)
Category:
None
State:
Open
Summary:
Show total size of folder contents

Detailed description
Show total size of folder contents

Possibly best done the same way strongspace seems to be doing it: on request via an AJAX call

Add A Comment: Notepad

Please login


Followup

Message
Date: 2009-12-04 10:14
Sender: Rudi Verago

def inside_size
  size = 0
  self.myfiles.each { |mf| size += mf.filesize }
  self.children.find(:all).each { |sub_folder| size
+= sub_folder.inside_size }
  size
end

Aloha,
Date: 2009-12-04 10:14
Sender: Rudi Verago

def inside_size
  size = 0
  self.myfiles.each { |mf| size += mf.filesize }
  self.children.find(:all).each { |sub_folder| size
+= sub_folder.inside_size }
  size
end

Aloha,

Attached Files:

Name Description Download
No Files Currently Attached

Changes:

No Changes Have Been Made to This Item