I\'m running Ruby on Windows though I don\'t know if that should make a difference. All I want to do is get the current working directory\'s absolute path. Is this possible fr
This will give you the working directory of the current file.
File.dirname(__FILE__)
Example:
current_file: "/Users/nemrow/SITM/folder1/folder2/amazon.rb"
result: "/Users/nemrow/SITM/folder1/folder2"