Is there any way to find out how much of disk space has been used by Media Library? My blog's media files stored in a separate folder named "media" rather than the default "wp-content/uploads".
Thanks
|
Is there any way to find out how much of disk space has been used by Media Library? My blog's media files stored in a separate folder named "media" rather than the default "wp-content/uploads". Thanks |
|||
|
|
I have used the same recursive method myself. It adds up the space used and counts the number of files nicely. But on the WP-MU site that I am managing many of the users have allocated disk space up to and over 1gB and over 10,000 files. To be able to charge the right sum my system has to perform periodic disk scans and on these big accounts it appears that the processing exceeds my ISPs processing limits. So when the tight recursive loop has finished the process bails out and skips the little finishing part where blog id, space and date are supposed to be stored in the usage log. My only option then is to implement a 'bit by bit' - logic, or upgrade my web hotel. That is expensive, and the first option requires programming of a kind that I would like to avoid. |
|||
|
|
|
Using this StackOverflow Answer, I came up with a Dashboard Widget that displays the following: I extended the OP request for the
PS: I suppose the |
|||
|
|