About 1,360,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. An In-Depth Guide to Python‘s os.mkdir() Method - TheLinuxCode

    In this comprehensive guide, we‘ll cover everything you need to know about os.mkdir() including basic usage, advanced techniques, best practices, and more. Being able to handle files and …

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

  10. Create a directory in Python - GeeksforGeeks

    Jul 12, 2025 · To create directories, you can use the os.mkdir () and os.makedirs () functions. To create a single directory, you can use the os.mkdir () function. If you need to create nested …