|
Post by rikky on Jan 25, 2020 10:21:36 GMT 1
Hello. I am using the latest fossil from about an hour ago. If I want to delete a folder recursively, it only works if I have only one condition. Compiling fails at the second condition. Even if I want to delete a different folder. file_1$ = "myfolder_1/myfile" file_2$ = "myfolder_2/myfile" folder_1$ = "myfolder_1/" folder_2$ = "myfolder_2/"
MAKEDIR folder_1$ MAKEDIR folder_2$ SAVE "" TO file_1$ SAVE "" TO file_2$
condition = 0 'condition = 1 'condition = 2
IF condition = 0 THEN PRINT "deleting folder " & folder_1$ DELETE RECURSIVE folder_1$ END IF
IF condition = 1 THEN PRINT "deleting folder " & folder_2$ DELETE RECURSIVE folder_2$ END IF
response: Converting '/mnt/BERRYBOOT_OS/shared/opt/Playroom/BaCon/test.bac'... done, 27 lines were processed in 0.017 seconds. Analyzing dependencies... concat error malloc memcheck minmax recursive utf8 Compiling '/mnt/BERRYBOOT_OS/shared/opt/Playroom/BaCon/test.bac'... cc -c test.bac.c Makefile.bacon:6: recipe for target 'test.bac.o' failed
/mnt/BERRYBOOT_OS/shared/opt/Playroom/BaCon/test.bac:23:5: error: redefinition of '__b2c__rmrecursive'
INFO: see full error report (y/[n])? y In file included from test.bac.c:2:0: /mnt/BERRYBOOT_OS/shared/opt/Playroom/BaCon/test.bac:23:5: error: redefinition of '__b2c__rmrecursive' DELETE RECURSIVE folder_2$ ^~~~~~~~~~~~~~~~~~ In file included from test.bac.c:2:0: /mnt/BERRYBOOT_OS/shared/opt/Playroom/BaCon/test.bac:18:5: note: previous definition of '__b2c__rmrecursive' was here DELETE RECURSIVE folder_1$ ^~~~~~~~~~~~~~~~~~ make: *** [test.bac.o] Error 1
Rik.
|
|
|
Post by Pjot on Jan 25, 2020 15:58:42 GMT 1
Hi rikky,
Thanks, and this is my fault. It is a left-over of the reorganization of the function dependencies in BaCon 4.0.
But it is fixed, if you check the latest beta then your sample code should work. I have verified all other functions but I think it was the only left-over, so all should be fine now.
Thanks again! Peter
|
|
|
Post by rikky on Jan 25, 2020 17:06:55 GMT 1
I'm happy to hear that this was not the deliberately included eastern egg bug. Looking further, for I do not want to miss the price. a month long eternal fame.
|
|