Added debugging output for FSNode.

This commit is contained in:
Stephen Anthony 2017-09-09 14:02:36 -02:30
parent 73282db9fd
commit 9190943534
1 changed files with 9 additions and 0 deletions

View File

@ -120,6 +120,15 @@ class FilesystemNode
return BSPF::compareIgnoreCase(getName(), node.getName()) == 0;
}
/**
* By default, the output operator simply outputs the fully-qualified
* pathname of the node.
*/
friend ostream& operator<<(ostream& os, const FilesystemNode& node)
{
return os << node.getPath();
}
/**
* Indicates whether the object referred by this path exists in the
* filesystem or not.