save meta for each directory in path
recursive creation of non existing directories
refactor