GetFileCount(1) won't return the total count of files of the write folder when creating new images through SaveImage() to the write folder, it only returns the correct count again after rebooting the app??
I thought GetFileCount() was supposed to be capable of returning the current files in a folder, but when I create a whole bunch of files using SaveImage it won't update to the new file count.
What am I doing wrong here?
filenamee$ = crop$+str(random(0,9999))+".png"
SaveImage(tmpcard,filenamee$)
Print(" File "+filenamee$)
Print(GetFolder())
files = GetFileCount(1)
Print("Total files: "+str(files))
This is put in a Repeat loop that continues for as long as the .scene is active. Creating any images works with pressing a virtualbutton. Saving the files my app creates works fine, they do exist and have generated names etc. Does SaveImage() fail to close the file somehow, until closing the app? Whatever the case, GetFileCount(1) won't return the correct amount of files now.