search for: file_separ

Displaying 1 result from an estimated 1 matches for "file_separ".

2013 Apr 04
6
replacing mkdir -p
...ot;/blah/blah/blah/and/","/blah/blah/blah/and/blah/"]: ensure => directory, } Then it occurred to me I could parse the path and produce the array of elements needed. Something like: $path = "/blah/blah/blah/and/blah" $file_list = split($path, $file_separator) $paths = inline_template(''<% parent = nil %><%=@file_list.collect{ |file| parent.nil? ? parent = "#{@file_separator}":parent = "#{parent}#{file}#{@file_separator}"}.join(@path_separator) %>'') $path_list = split($paths, $path_separator...