Closed pseudoscalar closed 2 years ago
I've made the requested changes. Was there anything else you wanted me to do to this?
@lyoshenka this PR writes three 1MB files in three directories (then deletes them) as part of startup to determine if "disk is full when sdk starts" (per bonus feature in #3270), is this what you had in mind?
That works, though I'm surprised that's necessary. What if the sdk crashes after writing the file and before deleting it? What if we run several SDKs in parallel (say, in a test)?
To check for write permissions, I assumed you'd just need to check whether the directories are writable by the user/group of the SDK process. For whether the disk is full, you can check if the partition containing the directories has space.
To resolve 3270