Skip to content
Sign upLog in
← Back to Community

I need help with folders

Profile icon
FaCe_crazykid05

so i am trying to add folders to organise everything in my site. i have found out how to link to a file in a folder from a file not in o folder but i can't do the reverse (file in folder to file out of folder) if you have any tips please tell me
https://repl.it/@FaCe_crazykid05/Meme-uses-and-such?language=html&folderId=

Thank you

Answered by GavHern [earned 5 cycles]
View Answer
Voters
Profile icon
MuhammadArman2
Profile icon
DianneBoholst
Profile icon
FeiHan4
Profile icon
FaCe_crazykid05
Comments
hotnewtop
Profile icon
GavHern

This is a problem that most people run into. If you do ../filename it will look for a file in the previous folder. Add the .. to go back a folder. You can always use multiple ..s, for example ../../../filename.

Profile icon
FaCe_crazykid05

@GavHern
THANK YOU SOOOOOOOOOO MUCH!

Profile icon
GavHern

@FaCe_crazykid05 No worries!

Profile icon
MATTHEWBECHTEL

Upvote this comment if it helps

Profile icon
Matthias009

Hey but I want to make a dc Gen bot and for that it need to go to a ornder to read files. Who I can make only ornder no [email protected]

Profile icon
a5rocks

So, <a href="href_here">, right? so, <a href="/"> should take you to the root. For example, <a href="/meme_folder1"> will get to SITE/meme_folder1 from anywhere (including SITE/meme_folder2)