SyntaxFix
Write A Post
Hire A Developer
Questions
File.expand_path File.dirname(__FILE__) will return the directory relative to the file this command is called from.
File.expand_path File.dirname(__FILE__)
But Dir.pwd returns the working directory (results identical to executing pwd in your terminal)
Dir.pwd
pwd