Ask coding questions

← Back to all posts
Can you hide files?
PYer (3461)

I don't mean hiding repls. You need the hacker plan for that. But lets say there is a file in a repl that you do not want anyone to see. Maybe it can hold some information that must remain confidential, or its a list of people who have won and lost at the game that only you want to know. I am just wondering if there is any way to do that.

timmy_i_chen (1108)

Indeed you can! You can use .env files - check out the docs here:

cyap (0)

That is also what I was trying to ask!!!

PYer (3461)

@cyap i was told to use .env problems. they mostly work, unless you want it to be public (the repl) then an error will be caused because the file disappears if it is not in your account