$file->isWritable()

Checks if the file is writable

  • return (boolean)

Example

<?php if($page->file()->isWritable()): ?>
The file is writable
<?php endif ?>