I am trying to create a variable which has the path to the folder I am currently using in command line. process.cwd() seems to give me the folder the file is in, not the folder I have cd to. process.env.PWD works on my linux machine, but not on windows.Basic folder structure for the project: root <- holds the node folders * Sub Folder A ** Sub Folder B ** Sub Folder CThe sub folders are local site installs. I'd like to navigate to the subfolders (and any of their sub folders) and perform various tasks like moving/deleting files, using functions held in the JS file in root.
Submitted November 25, 2015 at 10:11PM by doomwaxer
No comments:
Post a Comment