hmm, mkrdirs doesnt create subfolders when it point on file, instead of
folder