Cómo concatenar el nombre de la carpeta con imagen en PHP

$filepath = $path . DIRECTORY_SEPARATOR . $file;
Thoughtful Tern