Split file and folder name : split « File Directory « Ruby






Split file and folder name


full = '/home/matz/bin/ruby.exe'
File.split(full)             # => ['/home/matz/bin', 'ruby.exe']

 

Related examples in the same category