Skip to content

Instantly share code, notes, and snippets.

View sarahg's full-sized avatar
🏂

Sarah German sarahg

🏂
View GitHub Profile
@sarahg
sarahg / foldersize.php
Created May 6, 2019 20:11 — forked from eusonlito/foldersize.php
PHP function to get the folder size including subfolders
<?php
$folder = $_ENV['HOME'] . '/files';
/**
* Recursive function to retrieve directory + subdirectory sizes.
*
* @param $dir
* Absolute filepath to directory we need to check.
*/
<?php
/**
* @file
* Default theme implementation to display the basic html structure of a single
* Drupal page.
*
* Variables:
* - $css: An array of CSS files for the current page.
* - $language: (object) The language the site is being displayed in.