KnowledgeHub
Questions
Tags
Users
Search
Alex Rivera
|
Logout
Edit Question
Title
Body
I'm using the following code to try and get all files from ftp using Ruby. files = ftp.list() files.each do |file| ftp.gettextfile(file) end The problem is ftp.list returns a whole line of information, not just the filename e.g. -rw-r--r-- 1 ftp ftp 0 May 31 11:18 brett.txt How do I extract the filname from this string? Many thanks
Tags (comma-separated)
Save Edits
Cancel