gavinchou commented on code in PR #43525:
URL: https://github.com/apache/doris/pull/43525#discussion_r1845486541
##########
be/src/io/fs/local_file_system.cpp:
##########
@@ -471,4 +471,35 @@ Status LocalFileSystem::permission_impl(const Path& file,
std::filesystem::perms
return Status::OK();
}
+Path LocalFileSystem::convert_to_abs_path(const Path& inputPathString) {
+ std::string pathString = inputPathString;
+
+ // Initialize scheme and authority
+ std::string scheme;
+ std::string authority;
+
+ size_t start = 0;
+
+ // Parse URI scheme, if any
+ size_t colon = pathString.find(':');
Review Comment:
why not use `std::string::starts_with()` ?
--
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: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]