From: Aria Stewart Date: 2007-11-28T04:08:12+09:00 Subject: Re: Accessing a file server with ruby On Nov 27, 2007, at 10:10 AM, Anthony wrote: > I don't want FTP. I just want the program to look into the directory > and see whats there. Google has not been much help at all. > > Using Ruby 1.8.6, I can use Dir['servername'] and see what's there. > This doesn't work in Ruby 1.8.4. I can use Dir['C:/'] but can't get it > to jump to another server. If nothing else, is there an easy way to > update to Ruby 1.8.6? Will I have to reconfigure my servers? That sounds like using SMB to access a windows file server. That's no less complicated than 'FTP', except that your operating system lets you mount those shares as a local-seeming filesystem. Try "\\\ \servername\\share\\folder" -- the doubling to escape the backslashes, which are special in ruby strings. Upgrade /what/ to Ruby 1.8.6? You haven't given any details of your setup, not even OS. It's not "Just" a directory to look in. It's a remote share, with authentication, network failure scenarios, the whole bit. Your OS just fakes it partly, I suspect.