Ask coding questions

← Back to all posts
Can visitors create files?
h
DillonB07

Hi,

I have a repl that uses Python 3.
I am worried that it won't work as from my testing when using code like this:

When somebody else runs the project, I think that it creates the file locally and then doesn't add it to the main project.

Please can somebody tell me if this is what happens or if there is a workaround? If there isn't a workaround then my entire project idea won't work.

Project: https://replit.com/@DillonHarrison/WIP-8-RPG-Character-Creator#characterGenerator.py

Answered by ch1ck3n [earned 5 cycles]
View Answer
Voters
DillonB07
Comments
hotnewtop
ch1ck3n

replit (for apparent security measures) doesn't save file changes made by the program. it will delete whatever the program file is making. sadly there is no workaround for this. i contacted some of the devs and they said they would have to redo their infrastructure to fix this.

DillonB07

@ch1ck3n Thanks for the reply.
I don't really want to say this, as I like replit, but are there other online free IDE's that I can use for this project?
I've spent a lot of time on it and don't want to abandon it.

ch1ck3n

@DillonB07 how about glitch

edit: glitch might not support file editing from the program

DillonB07

@ch1ck3n
Thanks, I'll give it a go.

DillonB07

@ch1ck3n
Thanks for the suggestion.
Glitch.com does not officially support Python, but you can use it from the console.
However, other people can't run it.
Is your contact with the devs publically available to read/contribute to?
I'd like to see it.

ch1ck3n

@DillonB07 it's on discord from april 23rd i think? look in #off_topic

DillonB07

@ch1ck3n
Oh. I don't have access to Discord.
I thought it might be a suggestion on Canny.
I will make it a suggestion there though!
https://replit.canny.io/general-feedback/p/allow-visitors-to-create-files

ch1ck3n
DillonB07

@ch1ck3n
Ah, ok.
Mine was a little more specific I think though.
And yours didn't come up in the similar questions.

Thanks, though