[Gambas-user] cleaning gambas.1000 dir

Jussi Lahtinen jussi.lahtinen at gmail.com
Mon Nov 20 00:35:25 CET 2023


I think you are correct, but why bother?

Jussi

On Mon, Nov 20, 2023 at 12:33 AM Bruce Steers <bsteers4 at gmail.com> wrote:

> Do you think it is a bad idea to clean the /tmp/gambas100/ dir ?
>
> I added this code to my Gambas3 startup....
>
>   Dim sDir As String = File.Dir(File.Dir(Temp()))
>   For Each s As String In Dir(sDir, "*", gb.Directory)
>     If s Match "^[0-9]+$" Then
>      If Not Exist("/proc" &/ s) Then Exec ["rm", "-rf", sDir &/ s]
>     Endif
>   Next
>
> So all folders in gambas.1000 that are just a number are matched to
> folders in /proc/
> if the /proc/ folder does not exist the gambas folder is also deleted.
>
> That shouldn't break anything right?
>
> Respects
> BruceS
>
>
> ----[ http://gambaswiki.org/wiki/doc/netiquette ]----
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.gambas-basic.org/pipermail/user/attachments/20231120/2ad1cdd6/attachment.htm>


More information about the User mailing list