Yup, all of that makes sense! Perhaps you aren’t aware, but there are no “servers” at Netlify - nowhere your code “runs” on our infrastructure.
That code runs in an AWS lambda, and that lambda runs in a linux container (perhaps not quite the right word, but accurate enough for our purposes). The container is spun up to start the request, and then removed when the request completes. So, the file system is not able to be written on directly, and even if it was…it wouldn’t help you, since you could not “later” access that file (except in the exact same request you wrote it. And why would you want to do that? Write to a file and read it back and then throw it away?)
Check out jamstack.org where we explain the philosophy behind our service and this ecosystem. If you want to save some data while people browse your site, you’ll want to connect to some datastore like faunadb to do any kind of persistent/actually useful data storage
Thank you for answer, i understand. I try make cache. I understand that there are alternatives such as: server variables - but you can’t save a lot here, databases - you need to make a request to them, and if I need a variable that can easily be found by file name, it would shorten the request time. And besides there is 100GB of space that needs to be filled with something. It is a pity that there is no access to the file system, I will use external storage