Skip to content

Commit

Permalink
using File's separator...
Browse files Browse the repository at this point in the history
  • Loading branch information
onkis authored and Charles Jolley committed Apr 9, 2010
1 parent dfa82e6 commit 00c40a6
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions lib/sproutcore/rack/filesystem.rb
Expand Up @@ -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
Expand Down

0 comments on commit 00c40a6

Please sign in to comment.