Questions tagged [net-ftp]
29 questions
1
vote
1 answer
Ruby NET::FTP Not Resolving Correct IP
I am trying to connect to an FTP server using:
ftp = Net::FTPFXPTLS.new
ftp.passive=true
ftp.debug_mode=true
ftp.connect('200.111.111.11',21)
ftp.login('Username','Pass')
ftp.chdir('inbound')
ftp.putbinaryfile("./#{filename}",…

Hard-Boiled Wonderland
- 1,359
- 3
- 17
- 32
0
votes
1 answer
Perl Net::FTP::Recursive: Can't download folder but files of subfolders
I succeed to download files from a subfolder of the ftp-server. But if I want to download the folders from upper level it does not work.
Here is the folder structure:
folder rwx r-x r-x
subfolder1 rwx r-x r-x
file1 rw- r-- r--
file2…

giordano
- 2,954
- 7
- 35
- 57
0
votes
1 answer
Can't call method "filename" without a package or object reference
I want to download from a ftp server (host1) a bunch of directories with content. To do that I use library Net::FTP::Recursive. When I run the code the folders and files were downloaded. Nevertheless, I got this message:
>Can't call method…

giordano
- 2,954
- 7
- 35
- 57
0
votes
1 answer
Sporadic failure of System.Net.FtpClient.FileExists
I am trying to move to using System.Net.FtpClient, but things are not working as expected.
Running the code below, it seems like even though IsConnected returns true, a directly following call to FileExists() calls Connect() (which means the…

Philipp
- 11,549
- 8
- 66
- 126
0
votes
1 answer
Perl: Does file and directory testing not work with Net::FTP
I would like to test files and directories which I downloaded with ftp if they are files or directories. With the code below I always get the else statement (2,4,6) what ever $x is (file or directory). What is wrong with this code?
use Net::FTP;
my…

giordano
- 2,954
- 7
- 35
- 57
0
votes
2 answers
Getting files from Windows host with Perls Net::FTP
The laptops in our company go to the network either about LAN (workplace) or about WLAN (conference room). Depending on how they go to the net, they get from DHCP different IPs.
Certain Perl application on a server, copies files from the client…

Andreas
- 1
- 3
0
votes
0 answers
Net::FTP File Delete Get Stuck at Sometime
I used Net::FTP to upload and remove files in my server. When i try to delete a file, it sometimes get stuck. Can anyone explain me why this is happening.
ftp.delete(file)

Vijay
- 443
- 4
- 13
0
votes
0 answers
Net::FTP - having trouble finding the directory
I'm having trouble connecting to a hosted account via ftp and simply listing the files in a given directory.
Below is the code I have stored in a simple .rb file
require 'net/ftp'
require 'open-uri'
Net::FTP.open('#########', '########',…

RubyDude1012
- 477
- 1
- 8
- 14
0
votes
1 answer
Net::FTP and open-uri hanging while trying to put binary file to from URL to FTP server
I have a scenario where I have an S3 URL with binary content that needs to be transferred to an FTP server. I'm using Net::FTP, open-uri, and Ruby 2.0.0-p353.
require 'net/ftp'
require 'open-uri'
Net::FTP.open(x,y,z) do |ftp|
…

Sam Halicke
- 194
- 2
- 9
0
votes
1 answer
Unable to connect using net/ftp in ruby
I am getting following error when I am trying to connect the FTP server
ftp = Net::FTP::new("example.sg","username","password")
Errno::ECONNREFUSED: Connection refused - Connection refused
from org/jruby/ext/socket/RubyTCPSocket.java:121:in…

Sudhir
- 311
- 1
- 2
- 7
0
votes
1 answer
Shoes hangs on Net::FTP put
So I wrote the following piece of code:
Shoes.app(:title=> "Humax Uploader", :width=>400, :height=>400) {
background rgb(240, 250, 208)
stack(margin:10) {
title "Humax Uploader"
server = '[ip]'
user = '[user]'
…

TheUnpragmaticProgrammer
- 43
- 1
- 7
0
votes
1 answer
Can't read an uploaded file with Ruby's Framework Padrino
I have this form for uploading files:
-# coding: utf-8
- content_for(:body_classes, "body3")
.content
- form_tag url(:images, :create), :method => :post, :multipart => true do
= file_field_tag :file
= submit_tag "Upload"
And this…

Luis Ortega Araneda
- 865
- 1
- 12
- 26
0
votes
1 answer
Ruby Net::FTP gettextfile not able to save files locally
I am trying to retrieve files (.csv) from an ftp site and save them all locally in the same folder. My code looks like this:
#! /usr/bin/ruby
require 'logger'
require 'fileutils'
require 'net/ftp'
require 'rubygems'
require 'mysql2'
require…

analyticsPierce
- 2,979
- 9
- 57
- 81
-1
votes
1 answer
OpenSource .NET FTP Application
can somebody please provide me link to some FTP Client application with complete functionality like Filezilla or others like that..
i am looking for some OpenSource Solution and should be developed in .Net (C#, VB.Net).
i went through many FTP…

Fawad Ali Siddiqi
- 421
- 5
- 16