Skip to content
← Back to Community
Can you hide files?
Profile icon
PYer

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.

Answered by timmy_i_chen [earned 5 cycles]
View Answer
Voters
Profile icon
TOOMpy
Profile icon
babyyoda19
Profile icon
memmojs
Profile icon
Trillionz
Profile icon
ErrorNoInternet
Profile icon
programmeruser
Profile icon
RayLight
Profile icon
AlessandroZap
Profile icon
Foster_Bryant
Profile icon
DUN0040
Comments
hotnewtop
Profile icon
timmy_i_chen

Indeed you can! You can use .env files - check out the docs here: https://repl.it/site/docs/secret-keys

Profile icon
PYer

@timmy_i_chen Thanks

Profile icon
grrlic

@timmy_i_chen Hi Timmy, sorry for tagging. Just feeling like you may know the answer to my recent question.

Profile icon
AbdullahWael24

@timmy_i_chen it isn't working

Profile icon
grrlic

Hi, I would like to re-raise this topic. Let's say the program fetching a secret json file that depends on who is running the REPL. Can I specify which file extensions to hide when other people forking? e.g. .json files

Profile icon
cyap

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

Profile icon
PYer

@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