Added file.mkdir to replicate mkdir functionality and leaving makedirs alone