hdfs
hdfs copied to clipboard
Whether the Create function can open the CreateFlag parameter to the outside?
Now the Create function is forced to set CreateFlag to 1 (O_WRONLY). Is it possible to open this parameter?
We often modify the request according to our needs,such as: set CreateFlag to O_CREATE, set CreateParent to true.
Or make the internal/protocol、internal/rpc package public like v1, so everyone can use rpc directly?
https://github.com/colinmarc/hdfs/blob/master/file_writer.go#L69
![image](https://user-images.githubusercontent.com/6067594/199229398-31ee4b31-1476-403f-b62b-2c92bd1e2e82.png)