Get size of user's data folder

Ask all your questions regarding OC 9.0 Please read the Support Forum Rules
Forum rules
The forums were migrated over to https://central.owncloud.org which is based on the forum software Discourse. The forums here is put into read-only mode starting from today.

More background information about this move and the reasoning behind it is available in this blogpost:

https://daniel.molkentin.net/2016/07/20 ... d-central/
Copephobia
Newbie
Posts: 2
Joined: Wed Apr 20, 2016 10:21 pm
ownCloud version: 9.0.1
Webserver: nginx
Database: MySQL
OS: Linux
PHP version: 5.5.9

Get size of user's data folder

Postby Copephobia » Thu Apr 21, 2016 2:31 pm

Hello,

I'd like to be reporting the entire size of the user's data folder for their quota. This way, they would have a truer sense of their used space. Currently, it is only their files folder that is shown in the Quota section of the Personal page.

I'd like it to show the total space used for their data folder (with files_versions, files_trashbin, and so on), but not have to rely on ownCloud's caching. An example of this would be potentially orphaned files, or anything that isn't in the cache.

I can use \OC\Files\Storage\Home and use getCache / calculateFolderSize to get the cache approximation of their usage, but is there anything I can use that'd get the size of the user folder in /data?

Thank you.

RealRancor
ownCloud master
Posts: 17381
Joined: Sat May 26, 2012 3:00 pm
ownCloud version: 9.0.2
Webserver: nginx
Database: MySQL
OS: Linux
PHP version: 7.0.x

Re: Get size of user's data folder

Postby RealRancor » Thu Apr 21, 2016 3:08 pm

Hi,

from our experience most times you won't get answers for development specific questions in this forums. Thats why we have created:

viewtopic.php?f=32&t=23696

where it is recommended to ask such stuff either at the developers mailinglist or the #owncloud-dev IRC channel.
*gone*

Copephobia
Newbie
Posts: 2
Joined: Wed Apr 20, 2016 10:21 pm
ownCloud version: 9.0.1
Webserver: nginx
Database: MySQL
OS: Linux
PHP version: 5.5.9

Re: Get size of user's data folder

Postby Copephobia » Thu Apr 21, 2016 3:13 pm

Thank you for the response, I'll check those out.


  • Similar Topics
    Replies
    Views
    Last post

Return to “ownCloud Server 9.0”

Who is online

Users browsing this forum: No registered users and 3 guests