__dirname go back one directory
let reqPath = path.join(__dirname, '../');//It goes 1 folders or directories back from given __dirname.
__dirname go back one directory
let reqPath = path.join(__dirname, '../');//It goes 1 folders or directories back from given __dirname.
how to go back to the last directory in linux
/
* File & Directory Commands *
To navigate into the root directory, use */ "cd /" /*
To navigate to your home directory, use */ "cd" /*or*/ "cd ~" /*
To navigate up one directory level, use*/ "cd .." /*
To navigate to the previous directory (or back), use */ "cd -"
Copyright © 2021 Codeinu
Forgot your account's password or having trouble logging into your Account? Don't worry, we'll help you to get back your account. Enter your email address and we'll send you a recovery link to reset your password. If you are experiencing problems resetting your password contact us