-1
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?
@ Dave Rook - abc.uploaded is the file name – Prakash V Holkar – 2014-04-29T07:20:04.077