From: Dylan Evans Date: 2009-02-26T15:30:35+09:00 Subject: Re: possibly a stupid question: How do I read / write to a NAS filesystem --0016e651fa9a3c855b0463cc8020 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit You will need to mount the NAS drive, after which you will be able to access it as part of your file system. When you browse the drive the the file manager interprets the uri to access the NAS, when you open it Dir is expecting a regular filepath. Try something along the lines of; mount -t smbfs //myworldbook/public /mnt/ and Dir.entries("/mnt/") But this is just a guess since i don't use samba On Thu, Feb 26, 2009 at 3:04 PM, RickM wrote: > I have a cheapo WD WorldBook NAS that I would like to access from a > Ruby application. This may actually be more about how to properly > mount the NAS so I can access it but I thought I would start here. I > am running Ubutu and when I browse the NAS I see a path > smb://mybookworld/public/ > but Dir.entries("smb://mybookworld/public/") doesn't work or any other > form I could dream up. > > -- The UNIX system has a command, nice ... in order to be nice to the other users. Nobody ever uses it." - Andrew S. Tanenbaum --0016e651fa9a3c855b0463cc8020--