Pathname#unlink complains "<file> is not a directory"
-----------------------------------------------------
Key: JRUBY-1580
URL: http://jira.codehaus.org/browse/JRUBY-1580
Project: JRuby
Issue Type: Bug
Affects Versions: JRuby 1.x
Environment: jruby trunk, r4961
[EMAIL PROTECTED] jrfs]$ svn info ~/jruby
Path: /home/james/jruby
URL: http://svn.codehaus.org/jruby/trunk/jruby
Repository Root: http://svn.codehaus.org/jruby
Repository UUID: 961051c9-f516-0410-bf72-c9f7e237a7b7
Revision: 4961
ruby 1.8.5 (2007-11-18 rev 4842) [i386-jruby1.1b1]
Linux ceantar.banshee.com 2.6.18-8.1.15.el5xen #1 SMP Mon Oct 22 09:33:52 EDT
2007 i686 i686 i386 GNU/Linux
Reporter: James Moore
Assignee: Thomas E Enebo
Pathname#unlink complains about a regular file not being a directory (it should
just remove the file):
[EMAIL PROTECTED] jrfs]$ ls -l /tmp/foo.wav
-rw-rw-r-- 1 james james 0 Nov 18 12:15 /tmp/foo.wav
[EMAIL PROTECTED] jrfs]$ cat ~/jrfs/bin/scratch.rb
require 'pathname'
x = Pathname.new('/tmp/foo.wav')
puts x.readable?
puts x.to_s
puts x.unlink
[EMAIL PROTECTED] jrfs]$ jruby ~/jrfs/bin/scratch.rb
true
/tmp/foo.wav
/home/james/jrfs/bin/scratch.rb:5:in `unlink': /tmp/foo.wav is not a directory
(Errno::ENOENT)
--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators:
http://jira.codehaus.org/secure/Administrators.jspa
-
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