save file in sub-directories