summaryrefslogtreecommitdiffstats
path: root/util/folder/dirut.cpp
diff options
context:
space:
mode:
authoreeight <[email protected]>2022-02-10 16:46:19 +0300
committerDaniil Cherednik <[email protected]>2022-02-10 16:46:19 +0300
commitbd085aee9b4f7a0bee302ce687964ffb7098f986 (patch)
tree1a2c5ffcf89eb53ecd79dbc9bc0a195c27404d0c /util/folder/dirut.cpp
parent475c0a46f28166e83fd263badc7546377cddcabe (diff)
Restoring authorship annotation for <[email protected]>. Commit 2 of 2.
Diffstat (limited to 'util/folder/dirut.cpp')
-rw-r--r--util/folder/dirut.cpp14
1 files changed, 7 insertions, 7 deletions
diff --git a/util/folder/dirut.cpp b/util/folder/dirut.cpp
index b081c5e0f69..ffc9b09f967 100644
--- a/util/folder/dirut.cpp
+++ b/util/folder/dirut.cpp
@@ -601,17 +601,17 @@ int ResolvePath(const char* rel, const char* abs, char res[/*MAXPATHLEN*/], bool
return 0;
}
-TString ResolvePath(const char* rel, const char* abs, bool isdir) {
+TString ResolvePath(const char* rel, const char* abs, bool isdir) {
char buf[PATH_MAX];
- if (ResolvePath(rel, abs, buf, isdir))
- ythrow yexception() << "cannot resolve path: \"" << rel << "\"";
+ if (ResolvePath(rel, abs, buf, isdir))
+ ythrow yexception() << "cannot resolve path: \"" << rel << "\"";
return buf;
}
-TString ResolvePath(const char* path, bool isDir) {
- return ResolvePath(path, nullptr, isDir);
-}
-
+TString ResolvePath(const char* path, bool isDir) {
+ return ResolvePath(path, nullptr, isDir);
+}
+
TString StripFileComponent(const TString& fileName) {
TString dir = IsDir(fileName) ? fileName : GetDirName(fileName);
if (!dir.empty() && dir.back() != GetDirectorySeparator()) {