Skip to content
← Back to Community
How do I change directorys?
Profile icon
WilliamBeshoar

Hey just wondering how to change directory so that I can use files from a folder on my PC. Thanks

Dont pay attention to the code below.

Voters
Profile icon
NishantKumar70
Profile icon
Joelprogsie
Profile icon
WilliamBeshoar
Comments
hotnewtop
Profile icon
Evanlicious

Hi! While you can't access your computer's files on repl.it, if you are doing something with a python program on your computer, then try the os module. Something like os.system("cd /DIR/") could work.

Profile icon
Zavexeon

You can't access files from your PC on repl.it (it's a website, that'd be a major security issue), but you can upload the files/folders you need to the repl. In the repl click the triple dot icon icon by the new file/new folder icon and click "Upload File" or "Upload Folder".

Profile icon
WilliamBeshoar

@Zavexeon Thanks