ok pour ça


2013/2/16 Jonathan Mercier-Ganady <notifications@github.com>

> In actions/actionpackdata/code/file.cpp:
>
> > @@ -49,6 +57,19 @@
> >  		return engine->undefinedValue();
> >  	}
> >
> > +	QScriptValue File::exists(QScriptContext *context, QScriptEngine *engine)
> > +	{
> > +		if(context->argumentCount() < 1)
> > +		{
> > +			throwError(context, engine, "ParameterCountError", tr("Incorrect parameter count"));
> > +			return false;
> > +		}
> > +
> > +		const bool ok = QFile::exists(context->argument(0).toString());
> > +
> > +		return engine->toScriptValue(ok);
>
> Ou plus simple : return QFile::exists(context->argument(0).toString());
> (constructeur implicite qui accepte un bool)
>
> —
> Reply to this email directly or view it on GitHub<https://github.com/Jmgr/actionaz/pull/13/files#r3039026>.
>
>