Trying to use the File and Dir classes on remote directories with no
luck whatsoever. Here’s what I want to do:
Put a bunch of files into a folder on an FTP server. This could be
SSH/SFTP/FTP/whatever into that folder (none of these have worked for
me thus far).
Use the Ruby File and Dir classes to operate on these files.
The main problem seems to be that if you use any of the Net:: stuff from
the standard library, you can do some stuff with the related File and
Dir utilities, but you’re not actually working with the files themselves
as you would in the local environment.
Is there a way to access files directly on remote servers the way you
can in the local environment? Can I get into a remote server from my
local machine and do things like File.ctime(my_remote_file) ?
Thanks in advance.