Thanks for answer!
No, it's not so simple, I don't need to use machine's file system. I need to use sftp server as middleware of file transporting. So I need to catch the stream and direct it to different remote server. How do you think what would be the best way to do that? Custom file system?