private void scan(Node n)
	{
		Node[] childNodes = getChildNodes(n);
		totalSize += n.getSize();
		
		//base case
		if (childNodes == null)
		{
			fileCount++;
		}
		
		else
		{
			n.setChildren(childNodes);
			for (Node node: childNodes)
					scan(node);
		}
	}