[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Deleting IFS objects
Mario,
The unlink() API does not understand wildcards.
Consider using a CL command (RMVLNK) or a QShell command (such as find,
rm, etc.)
Also, please be VERY careful about using wildcards when you delete.
Most of the time, when I see someone do this in a program, it ends up
causing problems for them. Deleting a wildcard in a program is not
usually proper procedure.
Is this related to HTTPAPI or FTPAPI? If not, please take it to another
forum.
On 2/7/2011 7:26 AM, Mario Rodrigues wrote:
>
> Hi Scott,
>
>
> I follow your example for write, read and deleting IFS object, but I
> ask you if this is possible and done well before I run:
>
>
> c if unlink('/tyloglib/trns*.*')< 0
>
> c callp EscErrno(errno)
>
> c endif
>
>
> i want delete all objects inside of this DIR and start with trns....
>
>
> I think is possible too, delete the older objects that I have for
> example +30 days older from today.
>
>
> I don't know if I'm clear with this answer, my problem begun when I
> see this DIR, and and the log files that I have, but I want keep with
> the last 30 days.
>
>
>
> Thanks for your attention
>
>
>
> Mário Rodrigues
>
> Analista/Programador
>
> Promosoft Financial
>
> mario.rodrigues@xxxxxxxxxxxxx
>
> Tel.: (+351) 211107100 Fax: (+351) 211107103 Ext: 3174
>
> www.promosoft.com
>
> _________________________________________________________________
>
> Disclaimer/Implicações legais
> http://www.promosoft.com/disclaimer/e-mail.htm
> _________________________________________________________________
>
> Antes de imprimir este "e-mail" pense no meio ambiente.
> Por favor considere as suas responsabilidades ambientais! Antes de
> imprimir o Email, pergunte a si mesmo se realmente precisa duma cópia
> em papel.
>
>
>
>
> -----------------------------------------------------------------------
> This is the FTPAPI mailing list. To unsubscribe, please go to:
> http://www.scottklement.com/mailman/listinfo/ftpapi
> -----------------------------------------------------------------------
-----------------------------------------------------------------------
This is the FTPAPI mailing list. To unsubscribe, please go to:
http://www.scottklement.com/mailman/listinfo/ftpapi
-----------------------------------------------------------------------