Language:

Search

Create New Folder If Not Exist in Python

  • Share this:
post-title

By using "os library" as shown below

import os
if not os.path.exists('folder_name'):
    os.makedirs('folder_name')
Ammar Javed

Ammar Javed

Still Learning | Still Searching | Still Exploring | The secret of your success is determined by your daily agenda.