Add makedirs argument to some methods