Python : .mkdir()
The .mkdir() method is part of the pathlib module in Python. Why not os.mkdir()? You are familiar with os.mkdir() from the os module, which also creates directories. Although it serves a similar purpose, pathlib is often preferred. Its approach to file system operations is more intuitive and object-oriented. .mkdir(): This is a method of the Path object. It’s used to create a new directory at…
View On WordPress
















