Add getSize() to TraverseTARGETDirectory.r