I want to find the particular file name in particular directory in ruby.
I tried the following Dir.glob()
file = Dir.glob("/home/prakash/Desktop/*.uploaded") output:
/home/prakash/Desktop/abc.uploaded But I just want only the file name in output. I don't want file name with fully path.
So how can I do this?