Answers for "how to find the path of a file ruby"

2

ruby filename from path

path = "/path/to/file.ext"

File.basename(path) # 'file.ext'
Posted by: Guest on August-31-2020

Code answers related to "how to find the path of a file ruby"

Browse Popular Code Answers by Language