chaoyli commented on a change in pull request #2884: Add `sync_dir` interface to Env URL: https://github.com/apache/incubator-doris/pull/2884#discussion_r378039268
########## File path: be/src/env/env.h ########## @@ -139,9 +138,21 @@ class Env { // Delete the named file. virtual Status delete_file(const std::string& fname) = 0; - // Create the specified directory. Returns error if directory exists. + // Create the specified directory. + // NOTE: It will return error if the path already exist(not necessarily as a directory) virtual Status create_dir(const std::string& dirname) = 0; Review comment: necessity or not depends application logic. Is not depends on API ---------------------------------------------------------------- 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. For queries about this service, please contact Infrastructure at: us...@infra.apache.org With regards, Apache Git Services --------------------------------------------------------------------- To unsubscribe, e-mail: commits-unsubscr...@doris.apache.org For additional commands, e-mail: commits-h...@doris.apache.org