I have built a flask application which I have uploaded to cloud server, precisely ubuntu 18.04, in one of my python file i have reference a folder which for example the name of the folder is blog_details
but after assigning a variable name and even use path to point to the folder, yet the server is telling me file or folder not found
mind you i have change the ownership of the folder and the folder before it to the user of the server and not the root
FOLDER_NAME = "blog_details/"
path = os.getcwd() + FOLDER_NAME
os.chdir(path)
please is there a way to do this? and also is there a way to create a txt file the server also returns file not found, right from my python svript i never had any of this issue in my windows 10
with open('content2.txt', 'w') as f:
f.write(title + '\n\n')
Thanks in advance