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 trialDaniel Oropeza
4,432 PointsWhat 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
Jacob Mishkin
23,118 Pointsthe difference is ./ means the current folder in the command line where ../ means one above the current folder.
Kevin Korte
28,149 Pointsdot slash (./) refers to the current working directory. It is different than dot dot slash (../)
Daniel Oropeza
4,432 PointsDaniel Oropeza
4,432 PointsThank you