Creating dirs explicitly and txt to metrics file