# Discrepancy in operation of File.exist

**URL:** <https://www.ruby-forum.com/t/discrepancy-in-operation-of-file-exist/134805>\
**Category:** IronRuby\
**Created:** [April 15, 2008, 10:16am UTC](https://www.ruby-forum.com/t/discrepancy-in-operation-of-file-exist/134805 "2008-04-15T10:16:18Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![rjberry](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/r/34f0e0/32.png) [@rjberry](https://www.ruby-forum.com/u/rjberry)\
**Post date:** [April 15, 2008, 10:16am UTC](https://www.ruby-forum.com/t/discrepancy-in-operation-of-file-exist/134805/1 "2008-04-15T10:16:18Z")

</div>

Consider simple file.rb:

```
puts File.exist?("C:/work/napa.net/gui/bin/script")

```

There exists directory C:/work/napa.net/gui/bin/script

With C-ruby:

[11:11:29 ~/irb\_test] ruby file.rb  
true

With IronRuby:

[11:11:35 ~/irb\_test] rbx file.rb  
false

This discrepancy (among others) currently breaks the nice utility  
find.rb  
Robert B.  
Software architect  
Napa Ltd  
Tammasaarenkatu 3, Helsinki FI-00180  
P.O.Box 470, Helsinki FI-00181

Tel. +358 9 22 813 1  
Direct. +358 9 22 813 611  
GSM +358 45 11 456 02  
Fax. +358 9 22 813 800

Email: removed\_email\_address@domain.invalid [mailto:removed\_email\_address@domain.invalid](mailto:removed_email_address@domain.invalid)  
[www.napa.fi](http://www.napa.fi) [http://www.napa.fi/](http://www.napa.fi/)
