Bugs: Browse | Submit New | Admin

[#20412] File::Stat

Date:
2008-05-28 10:43
Priority:
3
Submitted By:
Wayne Kelly (kellyw)
Assigned To:
Tomas Matousek (tmat)
Category:
Built-in
State:
Open
Summary:
File::Stat

Detailed description
s = File.stat('\temp')

puts s.readable?

# RubyStatOps.IsReadable should be annotated as instance method, not singleton

puts s.class # => File::Stat

# Ruby class File::Stat extends abstract .NET class FileSystemInfo,
# but FileStatOps.Create method returns either FileInfo or DirectoryInfo
# objects which are considered different Ruby classes.

Add A Comment: Notepad

Please login


Followup

Message
Date: 2009-03-31 07:38
Sender: Jim Deville

s.class in this case returns System::IO::DirectoryInfo. Regression
test is being checked into core\file\stat_spec.rb (currently
in my clone of IronRuby, will go into TFS on Wed.)
Date: 2008-06-24 01:00
Sender: Tomas Matousek

Fix in SNAP.

Attached Files:

Name Description Download
No Files Currently Attached

Changes:

Field Old Value Date By
resolution_idNone2009-03-31 07:38jredville
assigned_tojredville2009-03-31 07:38jredville
assigned_tojlam2008-06-24 01:00tmat
category_idNone2008-06-02 05:51jredville
assigned_tonone2008-06-02 05:51jredville