Constructs a new file from the given path.
@api
string $path The path to the file:
Boolean $checkPath Whether to check the path or not:
FileNotFoundException If the given path is not a file
public function __construct($path, $checkPath = true) {
if ($checkPath && !is_file($path)) {
throw new FileNotFoundException($path);
}
parent::__construct($path);
}