kevinjqliu commented on code in PR #262:
URL: https://github.com/apache/iceberg-go/pull/262#discussion_r1924072633


##########
io/local.go:
##########
@@ -30,6 +31,18 @@ func (LocalFS) Open(name string) (File, error) {
        return os.Open(strings.TrimPrefix(name, "file://"))
 }
 
+func (LocalFS) Create(name string) (FileWriter, error) {
+       filename := strings.TrimPrefix(name, "file://")
+       if err := os.MkdirAll(filepath.Dir(filename), 0755); err != nil {

Review Comment:
   i just saw magic numbers so i wanted to double check, not sure what the 
default is either
   
   https://grep.app/search?q=os.MkdirAll%28&filter[lang][0]=Go
   
   there are some `0777` and `0755`s



-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: issues-unsubscr...@iceberg.apache.org

For queries about this service, please contact Infrastructure at:
us...@infra.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: issues-unsubscr...@iceberg.apache.org
For additional commands, e-mail: issues-h...@iceberg.apache.org

Reply via email to