You are here

public function Asset::calcFileSize in Mini site 8

Calculate file size.

1 call to Asset::calcFileSize()
Asset::setSize in src/Asset.php
Set asset size.

File

src/Asset.php, line 527

Class

Asset
Class Asset.

Namespace

Drupal\minisite

Code

public function calcFileSize($uri) {
  if (is_readable($uri)) {
    return @filesize($uri);
  }
  return NULL;
}