how to find file path in directory

Use cd (directory name) to go to the directory of the file.

Type ls to confirm you see the file name

Then type pwd to see the path of the directory.

eg.

SG-MacBook-Air:raceday SG$ pwd

/Users/SG/Downloads/raceday

add the file name to the path above

file_path=”/Users/SG/Downloads/raceday/./race_results.json”

Advertisements

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s