How to create a new directory using python

Publicado el: 03 mayo 2020
en el canal de: Success Learners
908
10

#youtube #youtuber #instagram #music #like #follow #love #youtubers #spotify #video #gaming #subscribe #hiphop #explorepage #youtubechannel #twitch #facebook #tiktok #memes #instagood #gamer #rap #ps #fortnite #soundcloud #k #viral #art #explore #bhfyp


Create a directory in Python
The OS module in Python provides functions for interacting with the operating system. OS comes under Python’s standard utility modules. This module provides a portable way of using operating system dependent functionality. The os and os.path modules include many functions to interact with the file system. All functions in os module raise OSError in the case of invalid or inaccessible file names and paths, or other arguments that have the correct type but are not accepted by the operating system.

There are different methods available in the OS module for creating a director. These are –

os.mkdir()
os.makedirs()

Using os.mkdir()
os.mkdir() method in Python is used to create a directory named path with the specified numeric mode. This method raise FileExistsError if the directory to be created already exists.


En esta página del sitio puede ver el video en línea How to create a new directory using python de Duración hora minuto segunda en buena calidad , que subió el usuario Success Learners 03 mayo 2020, comparta el enlace con amigos y conocidos, en youtube este video ya ha sido visto 908 veces y le gustó 10 a los espectadores. Disfruta viendo!