I have a strange problem with renaming a folder under MiNT.
Following situation, I have started the unzip.ttp with Pexec(0) from my
program, when I try to rename the depacked folder, I always get an error
-33 from frename(). So it seems the folder isnŽt there after unzip has
finished. So I have tried the following, (I use some kind of pseudo
Basic, because IŽm a GfA coder, hope you understand what I mean.:))
Pexec(0,unzip.ttp)
jump:
if exist(folder_old)
frename(folder_old, folder_new)
else
goto jump
endif
When I try this it takes several seconds and then the folder will be
renamed. So, it looks like the folder isnŽt there directly after unzip
has finished, what could be the problem there?
When I start the program under plain TOS it works fine, without the
loop.
All these actions took place on normal TOS partition with NEWFATFS
enabled.
Any ideas?
Ciao
Marc-Antón
--
**************************************************
Business: http://www.st-katharina-apotheke.de
Photography: http://www.ndh.net/home/kehr
Atari: http://atari.st-katharina-apotheke.de
**************************************************
Which version of the kernel?
CVV
--
Konrad M.Kokoszkiewicz
mail: dr...@atari.org
http://draco.atari.org
** Ea natura multitudinis est,
** aut servit humiliter, aut superbe dominatur (Liv. XXIV,25)
*************************************************************
** Taka to juz natura pospolstwa, ze albo sluzy ono unizenie,
** albo bezczelnie sie panoszy.
> Hi all,
>
> I have a strange problem with renaming a folder under MiNT.
> Following situation, I have started the unzip.ttp with Pexec(0) from my
> program, when I try to rename the depacked folder, I always get an error
> -33 from frename(). So it seems the folder isnZťt there after unzip has
> finished. So I have tried the following, (I use some kind of pseudo
> Basic, because IZťm a GfA coder, hope you understand what I mean.:))
>
> Pexec(0,unzip.ttp)
>
> jump:
>
> if exist(folder_old)
> frename(folder_old, folder_new)
> else
> goto jump
> endif
>
> When I try this it takes several seconds and then the folder will be
> renamed. So, it looks like the folder isnZťt there directly after unzip
> has finished, what could be the problem there?
> When I start the program under plain TOS it works fine, without the
> loop.
> All these actions took place on normal TOS partition with NEWFATFS
> enabled.
>
> Any ideas?
There was a folder renaming bug fixed not too long ago by Frank, check the
CVS change.log. You will need to build a new kernal.
--
Lonny Pursell http://www.q1.net/~atari/
On Thu, 27 Feb 2003 12:40:16 +0000 (UTC)
dr...@obta.uw.edu.pl (Konrad M. Kokoszkiewicz) wrote:
> Which version of the kernel?
1.16 compiled from CVS some days ago.
Ha, this means the problem is current :-)