Skip to content
Browse files

Qfs tool: fix -ls output by suppressing spurious trailing slashes.

  • Loading branch information...
1 parent 9da4e04 commit fb5ff0fb891b2cae3afc4c212df35925e90f8555 @mikeov mikeov committed
Showing with 3 additions and 3 deletions.
  1. +3 −3 src/cc/tools/qfs_main.cc
View
6 src/cc/tools/qfs_main.cc
@@ -1131,10 +1131,10 @@ class KfsTool
mOutStream << inFs.GetUri();
}
mOutStream << inEntry.mPath;
- if (inEntry.mPath != "/") {
- mOutStream << "/";
- }
if (! inEntry.mName.empty()) {
+ if (inEntry.mPath != "/") {
+ mOutStream << "/";
+ }
mOutStream << inEntry.mName;
}
mOutStream << "\n";

0 comments on commit fb5ff0f

Please sign in to comment.
Something went wrong with that request. Please try again.