File typed values are a filesystem file entry.



File typed values can be constructed from a literal string or templated string; see string initialization.


File typed values are coercible to:

  • boolean (files which are empty, all "0", or (case insensitive) "f" or "false" coerce to false; all else coerce to true)
  • array (if value of file is an array in JSON format)
  • number (if value of file is numeric)
  • object (if value of file is an object in JSON format)
  • string
Last updated on by Chris Dostert