0

How can i create a new directory from python on my Android? I've searched about it but didn't find a working solution, 🤔

unable to creat a new directory from python

12th Oct 2018, 8:16 PM
Praveen Bhat
Praveen Bhat - avatar
5 Respostas
12th Oct 2018, 8:21 PM
Valen.H. ~
Valen.H. ~ - avatar
+ 7
Check if the folder already exists, the path is correct and if you have permissions for it.
12th Oct 2018, 8:30 PM
Valen.H. ~
Valen.H. ~ - avatar
+ 7
Are you using an Android Python IDE app like Pydroid3? It won't work on the SoloLearn code playground because it will try to make the directory on the SL server. I ran this on Pydroid3 and it created the directory (in the Pydroid files path) import os os.mkdir("tempDir")
13th Oct 2018, 4:49 AM
David Ashton
David Ashton - avatar
0
no I've already it 😐, showing error: Errno 13
12th Oct 2018, 8:25 PM
Praveen Bhat
Praveen Bhat - avatar
0
I'm trying to make a save folder for a game I'm making. I'd like to create a folder outside of pydroid, in the user folder, to be able to save player stats and map position. (I've tried JSON but that converts my integers to strings and then my game crashes)
3rd Mar 2022, 3:03 PM
Justice Brinston
Justice Brinston - avatar