public
Rubygem
Fork of nex3/haml
Description: HTML Abstraction Markup Language - A Markup Haiku
Homepage: http://haml.hamptoncatlin.com
Clone URL: git://github.com/chriseppstein/haml.git
Search Repo:
Use File::SEPARATOR instead of assuming it is '/'.
chriseppstein (author)
Mon Jul 21 21:01:48 -0700 2008
commit  606dee079492a8356c488ec61f0f0bf37765b13b
tree    13b84f50c518684f8e2e99c0c3cbc842f19f4811
parent  65dd6bcfb95ea3853723899df1eee84a0ce1443d
...
83
84
85
86
 
87
88
89
...
83
84
85
 
86
87
88
89
0
@@ -83,7 +83,7 @@ module Sass
0
       # Create any successive directories required to be able to write a file to: File.join(base,name)
0
       def mkpath(base, name)
0
         dirs = [base]
0
- name.split('/')[0...-1].each { |dir| dirs << File.join(dirs[-1],dir) }
0
+ name.split(File::SEPARATOR)[0...-1].each { |dir| dirs << File.join(dirs[-1],dir) }
0
         dirs.each { |dir| Dir.mkdir(dir) unless File.exist?(dir) }
0
       end
0
 

Comments

    No one has commented yet.