document API for createReadStream and createWriteStream