If checking in advance for how much space is free on the USB Drive is too complicated and depends on which type of data needs to be written, then maybe simply checking if the writting of files/data was successful and giving an appropriate error code at the end will also suffice. The User is then notified that the writting was not complete but at least he knows that the USB Stick may not be usable.
If checking in advance for how much space is free on the USB Drive is too complicated and depends on which type of data needs to be written, then maybe simply checking if the writting of files/data was successful and giving an appropriate error code at the end will also suffice. The User is then notified that the writting was not complete but at least he knows that the USB Stick may not be usable.