Esempio n. 1
0
def createfl(i):
   if not os.path.exists("Catalog/{}".format(i)):
       os.makedirs("Catalog/{}".format(i))
       cam_mngr.ask_user(i=i)
   else:
       print("Seems file {} already exists!".format(i))
       createfl(i=input("Please type the name of your category or item specific folder: "))
Esempio n. 2
0
def createfl(i):
    if not os.path.exists("Catalog/{}".format(i)):
        os.makedirs("Catalog/{}".format(i))
        cam_mngr.ask_user(i=i)
    else:
        print("Seems file {} already exists!".format(i))
        createfl(i=input(
            "Please type the name of your category or item specific folder: "))
Esempio n. 3
0
def user_welcome():
    print("Welcome to CatalogCam!")
    usernput = input("Type new to create category/item folder or press Enter for Catalog \n Please type |New or Enter|: ")

    if usernput.lower() == "new":
        file_mngr.createfl(i=input("Please type the name of your category or item specific folder: "))
    else:
        catalogdir = dict(enumerate(os.listdir("Catalog")))
        print(catalogdir)
        cam_mngr.ask_user(i=catalogdir[int(input("Please enter the id/number of the directory you would like to use: "))])
Esempio n. 4
0
def user_welcome():
    print("Welcome to CatalogCam!")
    usernput = input(
        "Type new to create category/item folder or press Enter for Catalog \n Please type |New or Enter|: "
    )

    if usernput.lower() == "new":
        file_mngr.createfl(i=input(
            "Please type the name of your category or item specific folder: "))
    else:
        catalogdir = dict(enumerate(os.listdir("Catalog")))
        print(catalogdir)
        cam_mngr.ask_user(i=catalogdir[int(
            input(
                "Please enter the id/number of the directory you would like to use: "
            ))])