'Where to keep files in android such as it'll get called by pyobjects with throwing error that file doesn't exists

I am using chaquopy library to implement few functionalities in android with python. I am having problem with os.getcwd(), whenever i run this it just returns blank. I only gave the Internet permission to my app, but should i have to give storage permission too for this.

I am calling text files from directory which is stored in my python script's directory, because it'll be easy to locate them. still while running app it says file doesn't exists.

Thank you

Edit 1 : i also tried os.listdir() and it return an error 13 saying permission denied '/'



Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source