hdfs icon indicating copy to clipboard operation
hdfs copied to clipboard

Allow setting CreateFlag when creating files

Open peterfajdiga opened this issue 1 year ago • 0 comments

When creating files, CreateFlag is hardcoded to 1 (CREATE) here: https://github.com/colinmarc/hdfs/blob/master/file_writer.go#L69 Often you want a different CreateFlag, for instance CREATE|OVERWRITE. It would be immensely useful to be able set the CreateFlag when calling Create (or perhaps a new method).

peterfajdiga avatar May 22 '23 10:05 peterfajdiga