About 1,320,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 …

  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 …

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

    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 …

  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 do I create a directory, and any missing parent ...

    How do I create a directory at a given path, and also create any missing parent directories along that path? For example, the Bash command mkdir -p /path/to/nested/directory does this. In …

  6. 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, …

  7. 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 …

  8. 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 …

  9. Creating Directories with os.mkdir in Python - Python Lore

    Effortlessly create directories in Python using os.mkdir. Learn to manage files and handle errors like FileExistsError and PermissionError with ease.

  10. 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. …