# Errno::ENOENT (No such file or directory

**URL:** <https://www.ruby-forum.com/t/errno-enoent-no-such-file-or-directory/62728>\
**Category:** Rails\
**Created:** [June 7, 2006, 5:34pm UTC](https://www.ruby-forum.com/t/errno-enoent-no-such-file-or-directory/62728 "2006-06-07T17:34:21Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![learningruby](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/l/6bbea6/32.png) [@learningruby](https://www.ruby-forum.com/u/learningruby)\
**Post date:** [June 7, 2006, 5:34pm UTC](https://www.ruby-forum.com/t/errno-enoent-no-such-file-or-directory/62728/1 "2006-06-07T17:34:21Z")

</div>

Hi,  
I have my RoR deployed on Linux server. My application has “browse file”  
section where it selects the file from users machine (e.g. -  
D:/kw/loaddata/New/abc.txt) and passes it to convertTo method

But the path is not being resolved. It throws me an error:  
Errno::ENOENT (No such file or directory - D:/kw/loaddata/New/abc.txt):  
.//app/controllers/releases\_controller.rb:35:in `initialize' .//app/controllers/releases_controller.rb:35:in`convertTo’  
/scratch/ruby/lib/ruby/gems/1.8/gems/actionpack-1.12.1/lib/action\_controller/base.rb:910:in  
`perform_action_without_filters' /scratch/ruby/lib/ruby/gems/1.8/gems/actionpack-1.12.1/lib/action_controller/session_management.rb:117:in`process’  
…

any input on how do I reolve this? I’m chaging the windows to fwd slash  
in my method. I guess I can access file on windows from linux box.

def convertTo  
inputfilename = params[:inputfilename].gsub("\","/")  
end

---

<div class="post-metadata">

**Author:** ![learningruby](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/l/6bbea6/32.png) [@learningruby](https://www.ruby-forum.com/u/learningruby)\
**Post date:** [June 8, 2006, 3:59pm UTC](https://www.ruby-forum.com/t/errno-enoent-no-such-file-or-directory/62728/2 "2006-06-08T15:59:21Z")

</div>

Ruby R. wrote:

> `perform\_action\_without\_filters’  
> end

Perhaps it’s choking on the leading “D:”.

Does this simple test work, using irb?  
File.exists?(“D:/kw/loaddata/New/abc.txt”)

Dan
