Welcome to the Treehouse Community

Want to collaborate on code errors? Have bugs you need feedback on? Looking for an extra set of eyes on your latest project? Get support with fellow developers, designers, and programmers of all backgrounds and skill levels here with the Treehouse Community! While you're at it, check out some resources Treehouse students have shared here.

Looking to learn something new?

Treehouse offers a seven day free trial for new students. Get access to thousands of hours of content and join thousands of Treehouse students and alumni in the community today.

Start your free trial

General Discussion

Daniel Oropeza
Daniel Oropeza
4,432 Points

What does this file path mean?

So I know that the "../" filepath means go back one directory.

In the config.rb file for a wordpress project I'm working on it says this.

css_dir = "../css"

sass_dir = "./"

My question is, what does "./" refer to? Does it mean to go back one directory as well? I'm sorry if this is a really simple question.

2 Answers

the difference is ./ means the current folder in the command line where ../ means one above the current folder.

Kevin Korte
Kevin Korte
28,149 Points

dot slash (./) refers to the current working directory. It is different than dot dot slash (../)