this stuff. if we know it's a file stream we could also `stat()` the `.path` but that's hacky