BlitzMax FTP and small files

BlitzMax Forums/BlitzMax Beginners Area/BlitzMax FTP and small files

I don't see a CloseStream(Filestream) in the getDataAsFile() function. My guess is that small files are being buffered, and then lost when the Function ends. Technically, CloseStream should be implicitly called when FileStream loses scope, but you might want to go ahead and place an explicit CloseStream() after the CopyStream() to flush the buffer and write the contents to the HD.