How can I get the filename from a file path in Ruby?
For example if I have a path of \"C:\\projects\\blah.dll\" and I just want the \"blah\".
\"C:\\projects\\blah.dll\"
Is
Try this code
Use extname
File.basename("a/b/d/test.rb", File.extname("a/b/d/test.rb")) #=> "test"