1234567891011121314151617181920212223 |
- #include "yql_paths.h"
- #include <util/folder/pathsplit.h>
- namespace NYql {
- TString BuildTablePath(TStringBuf prefixPath, TStringBuf path) {
- if (prefixPath.empty()) {
- return TString(path);
- }
- prefixPath.SkipPrefix("//");
- TPathSplitUnix prefixPathSplit(prefixPath);
- TPathSplitUnix pathSplit(path);
- if (pathSplit.IsAbsolute) {
- return TString(path);
- }
- return prefixPathSplit.AppendMany(pathSplit.begin(), pathSplit.end()).Reconstruct();
- }
- }
|