About 47,000 results
Open links in new tab
  1. os.mkdir () method-Python - GeeksforGeeks

    Jul 11, 2025 · os.mkdir () method in Python create a new directory at a specified path. If the directory already exists, a FileExistsError is raised. This method can also set permissions for the new directory …

  2. Create a Directory in Python: mkdir (), makedirs () - nkmk note

    Apr 19, 2025 · In Python, you can create new directories (folders) using the os.mkdir() and os.makedirs() functions. While os.mkdir() creates a single directory, os.makedirs() is more convenient when you …

  3. os — Miscellaneous operating system interfaces — Python 3.14.3 ...

    The mode parameter is passed to mkdir() for creating the leaf directory; see the mkdir () description for how it is interpreted. To set the file permission bits of any newly created parent directories you can …

  4. Python os.mkdir () - W3Schools

    Definition and Usage The os.mkdir() method is used to create a directory. If the directory already exists, FileExistsError is raised Note: Available on WINDOWS and UNIX platforms.

  5. python - How to create new folder? - Stack Overflow

    Because os.path functions use the local rules of the python installation running the script for path strings. Using os.path.join in all cases assures that your paths will be formed correctly for the platform the …

    Missing:
    • mkdir
    Must include:
  6. How to Use os.mkdir in Python - PyTutorial

    Oct 13, 2024 · Learn how to use the os.mkdir function in Python to create directories with step-by-step examples.

  7. Working with `mkdir` in Python: A Comprehensive Guide

    Mar 24, 2025 · The mkdir operation allows you to programmatically generate new directories at specified locations. This blog post will explore the fundamental concepts, usage methods, common practices, …

  8. Python os.mkdir () Method - Online Tutorials Library

    The mkdir () method is a built-in function of Python OS module that allows us to create a new directory at the specified path. We can also specify the mode for newly created directory.

  9. Python os.mkdir Function - Complete Guide - ZetCode

    Apr 11, 2025 · This comprehensive guide explores Python's os.mkdir function, which creates directories in the file system. We'll cover basic usage, error handling, path specifications, and permission modes.

  10. Python - Create Directory - os.mkdir ()

    To create a directory using Python program, use os.mkdir () function and pass the directory path to be created as an argument to the function. In this tutorial, we shall learn how to create a directory, with …