Navigation Menu

Skip to content

Commit

Permalink
Qfs tool: fix -ls output by suppressing spurious trailing slashes.
Browse files Browse the repository at this point in the history
  • Loading branch information
mikeov committed Feb 16, 2013
1 parent 9da4e04 commit fb5ff0f
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/cc/tools/qfs_main.cc
Expand Up @@ -1131,10 +1131,10 @@ class KfsTool
mOutStream << inFs.GetUri(); mOutStream << inFs.GetUri();
} }
mOutStream << inEntry.mPath; mOutStream << inEntry.mPath;
if (inEntry.mPath != "/") {
mOutStream << "/";
}
if (! inEntry.mName.empty()) { if (! inEntry.mName.empty()) {
if (inEntry.mPath != "/") {
mOutStream << "/";
}
mOutStream << inEntry.mName; mOutStream << inEntry.mName;
} }
mOutStream << "\n"; mOutStream << "\n";
Expand Down

0 comments on commit fb5ff0f

Please sign in to comment.