Permalink
Browse files

using File's separator...

  • Loading branch information...
1 parent dfa82e6 commit 00c40a675631df22b2049a8b558554261f1a6381 @onkis onkis committed with Charles Jolley Oct 1, 2009
Showing with 2 additions and 2 deletions.
  1. +2 −2 lib/sproutcore/rack/filesystem.rb
@@ -267,9 +267,9 @@ def success(msg)
def with_modifiable_path(path)
# can't use File.dirname here as it only recognizes Unix separators
- path_parts = path.split(::Rack::File::SEPARATOR)
+ path_parts = path.split(::File::SEPARATOR)
dir_name = File.join(path_parts[0..-2])
-
+
begin
FileUtils.mkdir_p(dir_name)
rescue Errno::EACCES

0 comments on commit 00c40a6

Please sign in to comment.