Lonster_Monster
Lonster_Monster

Reputation: 73

Node js requiring a file that is 2 directories back

SteamBot_Csgo_Bot\settings\Configuration

i have a js file in configuration folder and want to call a file in the steamBot_Csgo_Bot folder

i understand that ../ goes back one how do i go back 2 directories

Upvotes: 0

Views: 1311

Answers (2)

FilipYordanov
FilipYordanov

Reputation: 117

You can go 2 directories back with the following ../../

Upvotes: 1

Saphyra
Saphyra

Reputation: 460

Use ../ twice.

../../jsfile.js

Upvotes: 0

Related Questions