Misc cleanup

This commit is contained in:
Cinder Biscuits
2019-06-08 17:58:54 -05:00
parent 50542975ab
commit 9e1fa3f882
37 changed files with 112 additions and 178 deletions

View File

@@ -42,9 +42,8 @@ namespace OpenMetaverse.TestClient.Commands.Inventory.Shell
return "Error: Client not logged in.";
// Traverse the path, looking for the
for (int i = 0; i < path.Length; ++i)
foreach (var nextName in path)
{
string nextName = path[i];
if (string.IsNullOrEmpty(nextName) || nextName == ".")
continue; // Ignore '.' and blanks, stay in the current directory.
if (nextName == ".." && currentFolder != Inventory.RootFolder)