Hi,
I want to create a folder inside the Odoo folder using python function( ie, inside Odoo-12.0 )
for this, I imported the os, and find the path. If the path didn't exist I want to create a folder as the path describes. but when this runs it shows an error like,
PermissionError: [Errno 13] Permission denied '/certificates'
My code is given below. Please Help
import os
path = str(pathlib.Path(__file__).parent.absolute()) + "/certificates"
is_file = os.path.exists(path)
if not is_file:
os.mkdir(path)