$file->dir()
Returns the full path for the directory, in which the file is located
-
return (string)
Example:
echo $page->file()->dir();
Returns the full path for the directory, in which the file is located
echo $page->file()->dir();