Skip to content

Instantly share code, notes, and snippets.

View frankovo's full-sized avatar

Joseph O. frank frankovo

View GitHub Profile
@frankovo
frankovo / create_dir.py
Last active May 12, 2018 22:47
How to create folder in Python
import os
class CreateDirectory(object):
""" A class that creates directory """
def create_new_folder(self):
""" Creates folder """
current_dir = os.path.dirname(os.path.abspath(__file__)) # __file__ is the script name e.g create_dir.py
folder_name = input("Enter folder name : ")