$site->hasFiles()

Checks if there are any files placed directly in /content

  • return (boolean)

Example

<?php if($site->hasFiles()): ?>
The /content folder contains files.
<?php endif ?>