Skip to content
Sign upLog in
← Back to Community

File access across different repls?

Profile icon
DuncDuncan

Is it possible to access a directory from a different repl? Using a path something like:
username/home/replname/folder
???

Voters
Profile icon
DuncDuncan
Comments
hotnewtop
Profile icon
Coder100

nope
not possible as they all run in their separate containers

try sending them by means of like an HTTP server

Profile icon
tussiez

I'm afraid this isn't possible. However, you can set up a web server that could do this..

Profile icon
SixBeeps

Nope, because your Repl is copied into a completely fresh Docker image (i.e. a blank OS is installed with just that one Repl's stuff). If you want to cross-access stuff from another Repl, you'll want to set up a server.

Profile icon
DuncDuncan

I have a folder of images on a php repl for a website and I want to use python to loop through them and rename them all.

Profile icon
19wintersp

@DuncDuncan
You can't really access them cross-repl, but you can run Python in a PHP repl. You just need to make your Python file, go to the "Shell" tab, and run python3 <name of python file>.

Profile icon
DuncDuncan

@19wintersp
thanks. this is what i wanted to do first. I'm trying this but it's just giving me: bash: syntax error near unexpected token `newline'

Profile icon
19wintersp

@DuncDuncan
Did you copy-paste what I wrote? I suggest typing it out.

Profile icon
DuncDuncan

@DuncDuncan

Screenshot 2021-01-11 at 21.52.22

Profile icon
19wintersp

@DuncDuncan
Oh, you just need to remove the "<" and ">".

python3 rename.py
Profile icon
DuncDuncan

@19wintersp
thanks. thats very useful. is this also possible to do in the shell of an html repl ?

Profile icon
19wintersp

@DuncDuncan
I'd assume so, yes.

Profile icon
RYANTADIPARTHI

i don't think it is. Yeah, probably not.

Profile icon
k9chelsea2

it actually might be im not too sure i guess it depends what your using it for and how. I'm pretty sure you can run scripts from other repls so that might be possible

Profile icon
DuncDuncan

@k9chelsea2
you can run scripts from other repls ?

Profile icon
k9chelsea2

i meant files lol i think in langs like html you can add external stylesheets from repls, some other langs might have that feature idk

Profile icon
JBloves27

No, it is not, although you could give feedback here
I hope this helps!