ScriptingContainer.getHomeDirectory() and getCurrentDirectory() return / paths and no \\ paths on Windows #3720

Closed
enebo opened this Issue Mar 9, 2016 · 1 comment

Comments

Projects
None yet
1 participant
@enebo
Member

enebo commented Mar 9, 2016

ScriptingContainer.getHomeDirectory() and getCurrentDirectory() return / paths and no \ paths on Windows

Environment

Windows on both JRuby 1.7.25 and 9.0.5.0+.

Expected Behavior

Paths are documented to return as OS-specific for Scripting container but we always return as unix-style paths.

Actual Behavior

enebo added a commit that referenced this issue Mar 9, 2016

@enebo enebo added this to the JRuby 1.7.25 milestone Mar 9, 2016

@enebo

This comment has been minimized.

Show comment
Hide comment
@enebo

enebo Mar 9, 2016

Member

I also massaged the tests to use File.equals(File) since it is too picky to expect things like trailing \ on a directory. I think the spirit of this string is intended to be used as either:

  • output
  • parameter to java.io.File
Member

enebo commented Mar 9, 2016

I also massaged the tests to use File.equals(File) since it is too picky to expect things like trailing \ on a directory. I think the spirit of this string is intended to be used as either:

  • output
  • parameter to java.io.File

@enebo enebo closed this Mar 9, 2016

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment