add directory to post