Is your feature request related to a problem? Please describe.vfs maintains a map of open files. There are a variety of operations that open a file and then do some thing to it, but don't need to maintain any state thereafter wrt to the file (e.g., reading the entire file, or getting the length, or getting the metadata). However, we almost never close files.
Describe the solution you'd like
If there isn't some ongoing operation wrt to the file, it should be closed after the operation.
Is your feature request related to a problem? Please describe.
vfs
maintains a map of open files. There are a variety of operations that open a file and then do some thing to it, but don't need to maintain any state thereafter wrt to the file (e.g., reading the entire file, or getting the length, or getting the metadata). However, we almost never close files.Describe the solution you'd like If there isn't some ongoing operation wrt to the file, it should be closed after the operation.