Questions tagged [ftp]

File Transfer Protocol (FTP) is a well-established protocol for conducting file operations (such as transferring files) over a TCP-based network such as the Internet.

File Transfer Protocol (Wikipedia article) is a protocol, governed by well-established Internet standards, for conducting file operations (e.g. transferring files between two systems) over a TCP-based network such as the Internet or a local area network. FTP employs a client-server architecture, where one system is the "client", which opens a connection to the other system, the "server", the client makes requests of the server, and then closes the connection.

The most common FTP operations that a client will initiate include downloading files (i.e. "get" files from the server) and uploading files (i.e. "put" files on the server). But there are a variety of file system related commands that the client may make of the server (e.g. making directories, renaming files on the server, deleting files from the server, etc.).

14199 questions
3
votes
2 answers

c# 4 : check if FTP directory exists

I used a class for all my FTP transfers witch work fine in C# 3.5 but since I updaded to the framework 4, I have some problems. I search on Google but find no solutions. Especially with a method to check if a directory exists : public bool…
A.Baudouin
  • 2,855
  • 3
  • 24
  • 28
3
votes
1 answer

Getting "Unable to determine system type - response: 500 Unknow command" when listing files on ESP8266 with Apache Commons Net

I try to connect to FTP server in ESP8266. Connection is successful, but I can't get list of files on the server. My code is: FTPClient mFtpClient = new…
istimbi
  • 41
  • 1
  • 8
3
votes
1 answer

A WinSCP script to download, rename, and move files

Disclaimer #1: I posted this question on the WinSCP's forum but haven't received any replies and this issue is time-sensitive.Disclaimer #2: I'm basing the legitimacy of this cross-post on advice found on the subject from Meta.With that…
Eliezer
  • 429
  • 1
  • 9
  • 20
3
votes
3 answers

Automated FTP to upload new files to web server?

I'm looking for a FTP client that I can use to upload new files from a local development machine to a remote web-server. I only want to upload the newly edited files though. Is there a command line utility that can do this, that I can add into an…
Gary Willoughby
  • 50,926
  • 41
  • 133
  • 199
3
votes
1 answer

FileBackedOutputStream use case (Guava)

I came across FileBackedOutputStream class from Google Guava library and was wondering if it's suitable to be used as a kind of a buffer: once every day, a process in my webapp generates tens of thousands of lines (each containing about…
John Manak
  • 13,328
  • 29
  • 78
  • 119
3
votes
3 answers

Alternative to Thread.Sleep() before socket read

I'm using this FtpClient library to connect to mainframe from WinForms application. I'm using thread.Sleep for the thread to wait for the response before it starts reading, otherwise it freezes. Is there an alternative to do this? public void…
user558138
  • 167
  • 1
  • 3
  • 13
3
votes
1 answer

ftp_put "Failed to establish connection" error with FTP SSL connection on some server

I've created a PHP script in order to make backups of web projects. It consists of make a .tar.gz archive, and the send it to a personal FTP Server (with vsftpd). From many Web server it works fine, but from one particular Web server the script not…
Klode
  • 353
  • 3
  • 18
3
votes
1 answer

Python 3 ftplib error "Name or service not known"

I am trying to download a file from FTP server using ftplib library of Python 3. Here is the relevant code- ftp = ftplib.FTP("ftp://library.daisy.org:21/User_****/Wise & Otherwise-22.zip") ftp.login("xxxxx", "xxxxxxx")…
Sid24
  • 334
  • 3
  • 14
3
votes
1 answer

FTP download speed issue: .NET socket programming vs using FtpWebRequest/Response objects

I'm trying to write a simple c# application which downloads a large number of small files from an FTP server. I've tried two approaches: 1 - generic socket programming 2 - using FtpWebRequest and FtpWebResponse objects The download speed (for the…
user587356
  • 31
  • 2
3
votes
2 answers

Multithreading/Async download from single FTP server

I need to download many files from a single folder in a single server and so I'm looking for a way to do it quicker. After a little bit of reading it seems that either a multi-threading or asynchronous approach would work, but I can't seem to get…
Jed
  • 638
  • 1
  • 8
  • 17
3
votes
3 answers

Is there an addressing issue for writing an FTP client that needs to upload files larger than 4 gigs?

If my FTP client intends to upload files over 4 gigs in size, assuming I'm streaming the data, my pointer is going to hit the wall at around 4 gigs, if it's a 32 bit pointer, right? I'm trying to imagine what's going on behind the scenes and am not…
Yevgeny Simkin
  • 27,946
  • 39
  • 137
  • 236
3
votes
2 answers

Transfer files directly from FTP to Azure File Storage without keeping them locally in memory or disk

I have to transfer files from FTP to an Azure File Storage. My code works fine, but I'm transferring those files in memory which is not a best practice. So first I read the stream to an Byte array in memory. Then I upload the output to an Azure file…
hatsjie
  • 181
  • 10
3
votes
1 answer

Apache Commons Net API usage

I am making a program to connect to FTP Server using FTPCLient class of apache commons net API. here is code: FTPClient client = new FTPClient(); byte[] b = new byte[4]; b[ 0] = new Integer(127).byteValue(); b[ 1] = new…
Ankit
  • 2,126
  • 4
  • 33
  • 53
3
votes
1 answer

Copy files to FTP and archive with today's date

I need to create a script that does the following: Copies all files in a folder to an FTP site. If the copy was successful move the files to an archive. The archive should be a freshly created folder with today's date (so we know when they were…
SysAdminUK
  • 37
  • 1
  • 6
3
votes
0 answers

Deploy Laravel project to shared hosting without SSH

I got my Laravel project ready to be deployed but every free hosting website I tried doesn't have SSH Command Line. This is what I've tried: FTP Upload including .env - Problem is I can't generate a key without command line. FTP Upload after…