![]() |
|
|
Issue Type:
|
Bug
|
Affects Versions:
|
JRuby 1.7.0, JRuby 1.6.7 |
Assignee:
|
Unassigned |
Attachments:
|
test.rb |
Components:
|
Ruby 1.8.7, Ruby 1.9.3 |
Created:
|
20/Nov/12 1:51 PM
|
Description:
|
When 'File.join' is run on a file that begins with a '\', the join command does not add the correct slash to the result. Example (include in the attachment):
`touch "/tmp/ testfile.txt"`
filename = " testfile.txt"
directory = "/tmp"
path = File.join directory, filename
puts path
puts File.exists? path
returns:
/tmp\testfile.txt
false
The File.join should return "/tmp/ testfile.txt"
|
Environment:
|
Red Hat Enterprise Linux 6.3, File System - EXT3
|
Project:
|
JRuby
|
Priority:
|
Major
|
Reporter:
|
Anand Gaitonde
|
|
|
|
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators.
For more information on JIRA, see: http://www.atlassian.com/software/jira
|
---------------------------------------------------------------------
To unsubscribe from this list, please visit:
http://xircles.codehaus.org/manage_email