Velocity Reviews - Computer Hardware Reviews

Velocity Reviews > Newsgroups > Programming > Ruby > How do you list files on a network share folder?

Reply
Thread Tools

How do you list files on a network share folder?

 
 
George
Guest
Posts: n/a
 
      09-15-2009
Hi there,

I'm using this syntax to fetch files: Dir[ folderPath + "*.jpg" ].sort
()

It works in a local folder but not with a folder on another machine.
How would I access "smb://selfs01/images/" ?
(I'm running ruby on a mac)

Many thanks
George
 
Reply With Quote
 
 
 
 
Robert Klemme
Guest
Posts: n/a
 
      09-15-2009
2009/9/15 George <(E-Mail Removed)>:
> I'm using this syntax to fetch files: Dir[ folderPath + "*.jpg" ].sort
> ()
>
> It works in a local folder but not with a folder on another machine.
> How would I access "smb://selfs01/images/" =A0 ?
> (I'm running ruby on a mac)


Mount it.

http://www.macosxhints.com/article.p...20610225855377

Disclaimer: I am not a Mac user.

robert

--=20
remember.guy do |as, often| as.you_can - without end
http://blog.rubybestpractices.com/

 
Reply With Quote
 
 
 
Reply

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Re: How include a large array? Edward A. Falk C Programming 1 04-04-2013 08:07 PM
Share-Point-2010 ,Share-Point -2010 Training , Share-point-2010Hyderabad , Share-point-2010 Institute Saraswati lakki ASP .Net 0 01-06-2012 06:39 AM
[ANN] clogger 0.3.2 - share a hacker, share a bug Eric Wong Ruby 0 02-13-2010 10:42 AM
question DRb class definition share or not share Jack Ruby 2 10-11-2007 05:26 PM
Wireless Network - Setup - How? See/share Files, share printers, how? Wayne Wireless Networking 2 04-08-2006 04:34 PM



Advertisments