From: spiralofhope Date: 2009-08-26T06:47:25+09:00 Subject: File::Separator value? (was: help directory name issue...) On Tue, 25 Aug 2009 19:59:36 +0900 7stud -- wrote: > fname = "C:/path/to/dir/pic10.jpg" > pieces = fname.split("/") > puts pieces[-2] #dir I find that I often use fname.split(File::Separator) to make my code more OS-agnostic.. While I've heard that "/" will work in Ruby code run on Windows.. I don't have a system to test. Should I continue using File::Separator?