public function __construct($file, $dir_path, $dir_url)
{
$dir_path = rtrim($dir_path, '/');
$file = $this->get_file($file, $dir_path);
$file_path = "{$dir_path}/{$file}";
if (is_readable($file_path)) {
$this->url = rtrim($dir_url, '/') . "/{$file}";
$this->version = filemtime($file_path);
}
}