Folder size

If you have questions or if you want to share your opinion about Aware IM post your message on this forum
Post Reply
weblike
Posts: 1165
Joined: Sun Dec 02, 2012 12:00 pm
Location: Europe

Folder size

Post by weblike »

I want to know how much space of storage is using each tenant.
I want to be able to store this info in a attribute.
Is there a function like File_Size which will handle this?

Thank you.
Thx,
George
________________________________
Developer Edition
AwareIM: v8.5, build 2824
OS: Windows Server 2012
DB: MySql 5.6.42
BenHayat
Posts: 2749
Joined: Thu Dec 23, 2010 5:48 am
Location: Fla, USA
Contact:

Re: Folder size

Post by BenHayat »

weblike wrote:I want to know how much space of storage is using each tenant.
What are you talking about? :)
weblike
Posts: 1165
Joined: Sun Dec 02, 2012 12:00 pm
Location: Europe

Re: Folder size

Post by weblike »

BenHayat wrote:
weblike wrote:I want to know how much space of storage is using each tenant.
What are you talking about? :)
You know what I'm talking about.... :)

My english is not as good as yours, I have to drink a beer to speak fluently :)
Thx,
George
________________________________
Developer Edition
AwareIM: v8.5, build 2824
OS: Windows Server 2012
DB: MySql 5.6.42
BenHayat
Posts: 2749
Joined: Thu Dec 23, 2010 5:48 am
Location: Fla, USA
Contact:

Re: Folder size

Post by BenHayat »

weblike wrote: I have to drink a beer to speak fluently :)
I think you went overboard this time... :mrgreen:
ACDC
Posts: 1148
Joined: Sat Jun 30, 2007 5:03 pm
Location: California, USA

Re: Folder size

Post by ACDC »

You could use Object.DocFileSize=FILE_SIZE(Object.Document) and then keep a running total of all the objects file size per user
weblike
Posts: 1165
Joined: Sun Dec 02, 2012 12:00 pm
Location: Europe

Re: Folder size

Post by weblike »

ACDC wrote:You could use Object.DocFileSize=FILE_SIZE(Object.Document) and then keep a running total of all the objects file size per user

Yes that would be a workaround for Folder Size. Thx.

However would be nice a FOLDER_SIZE function :))
Thx,
George
________________________________
Developer Edition
AwareIM: v8.5, build 2824
OS: Windows Server 2012
DB: MySql 5.6.42
ACDC
Posts: 1148
Joined: Sat Jun 30, 2007 5:03 pm
Location: California, USA

Re: Folder size

Post by ACDC »

I don't think you are going to get that function, besides why worry about folder size, just assign a data size level to a user and count the size of the files, they don't even have to be in the file system or they could be spread across multiple folders. By working on folder size you are painting yourself into a corner
4xjbh
Posts: 177
Joined: Thu Dec 22, 2005 10:01 pm
Location: Brisbane

Re: Folder size

Post by 4xjbh »

I don't think you are going to get that function, besides why worry about folder size, just assign a data size level to a user and count the size of the files, they don't even have to be in the file system or they could be spread across multiple folders. By working on folder size you are painting yourself into a corner
+1

You have a database record for each document stored in either the filesystem or database. Having a 'filesize' attribute for each document and maintaining a running total is easy. This can also be verified by a weekly, monthly scheduled process that can verify it and sending off any alerts to your users / admins etc.

If you have a large amount of files don't to the full size calculation every time a file is added, only do the addition of the new value to the running total.
Regards, James

AwareIM 7.1 on AWS - Beware I'm a AwareIM noob. Anything I help you with might make the hole your in deeper.
Post Reply