M
Michael Maloney
Trying to use the File and Dir classes on remote directories with no
luck whatsoever. Here's what I want to do:
1. Put a bunch of files into a folder on an FTP server. This could be
anywhere.
2. SSH/SFTP/FTP/whatever into that folder (none of these have worked for
me thus far).
3. 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.
luck whatsoever. Here's what I want to do:
1. Put a bunch of files into a folder on an FTP server. This could be
anywhere.
2. SSH/SFTP/FTP/whatever into that folder (none of these have worked for
me thus far).
3. 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.