$media->dir()

Returns the full path for the directory, in which the file is located

  • return (string)

Example:

echo $media->dir();