Answers for "File class in ruby get filename"

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 "File class in ruby get filename"

Browse Popular Code Answers by Language