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
6 answers

C# FTP 550 error

I'm trying to programatically download a file in C# via FTP, here is the relevant code (obviously with fake credntials and URI): try { var request = FtpWebRequest.Create("ftp://ftp.mydomain.com/folder/file.zip"); request.Credentials = new…
gzak
  • 31
  • 1
  • 1
  • 2
3
votes
4 answers

How to delete files via FTP when directory has over 100,000 files?

I went to upload a new file to my web server only to get a message in return saying that my disk quota was full... I wasn't using up my allotted space but rather my allotted FILE QUANTITY. My host caps my total number of files at about 260,000.…
twistedsymphony
3
votes
1 answer

Delphi and IdFtp - How to upload all files into directory

I have several xml files inside a directory, but I can only send file by file. I would like to send all the files that are inside that directory. How can I do this? idftp1.Put('C:\MyDir\*.xml','/xml/*.xml');
V.Salles
  • 403
  • 2
  • 9
  • 16
3
votes
1 answer

Reading xlsx from ftp server (using RCurl)

The GetURL function from the "RCurl" package is a fantastic tool for reading in content from ftp, https, ect. I have used the package a lot of times to read in .csv and .txt, but when it comes to .xlsx it has some problems. I found out on this…
3
votes
1 answer

Conditions in unix ftp script

I'm trying to write a code that will check a specific date's file and if it exists it'll get it to my local home path and if it doesn't exists then will retrieve other file of different…
User123
  • 1,498
  • 2
  • 12
  • 26
3
votes
1 answer

FtpWebRequest ListDirectory does not return all files

I am trying to retrieve the list of files from a FTP location which has about 9000 files. But the following code always gives only 97 files. In the beginning of the loop for the 98th file, the StreamReader.Peek() turns to -1 The output "test.txt"…
Arvind S
  • 87
  • 1
  • 7
3
votes
1 answer

"Remote host closed connection during handshake" when connecting to FTP server using Commons Net FTPSClient

My code (I use -Dhttps.protocols=TLSv1.2 VM argument when run): FTPSClient ftpClient = new FTPSClient("TLS", false); ftpClient.addProtocolCommandListener(new PrintCommandListener(new…
jyoshiriro
  • 51
  • 1
  • 5
3
votes
1 answer

Upload files from a list via ftp in bash

I have several files named as this: TEST_YYYYMMDD.txt I need to upload them via ftp, so to get the list of files I run: files=($(ls | grep -i -E 'TEST_[0-9]{8}.txt')) Now that I got the file list, how can I put them via ftp? function upload()…
3
votes
3 answers

How do I use sftp on git-ftp client?

I'm trying to use jenkins to automate an sftp upload and replace so that a folder on a sftp server is equal to the git repository. This is using sftp hosted on an openshift running nginx that only supports ftp using an ssh key which I've already…
lastlink
  • 1,505
  • 2
  • 19
  • 29
3
votes
3 answers

Using Python's FTP library to retrieve files

this is my first post on here so I'm happy to be a part of the community. I have a fairly mundane question to ask, but it's been a fairly annoying problem so I'm hoping to find answers. So I'm trying to use Python's FTPLIB module to retrieve a…
mbm
  • 1,902
  • 2
  • 19
  • 28
3
votes
3 answers

"Connection is not open" FTP Android

Everytime I try to connect, I get the exception "Connection is not open". The server is working well when I try to access by FileZilla or browser. I'm using the apache-common-net library. private Boolean downloadAndSaveFile(String server, int…
JotaB
  • 99
  • 1
  • 8
3
votes
1 answer

Jsch throwing End of file Exception

This happens on some files but not on others. 1: End of file at com.jcraft.jsch.ChannelSftp.throwStatusError(ChannelSftp.java:2846) at com.jcraft.jsch.ChannelSftp._stat(ChannelSftp.java:2198) at…
Kam
  • 5,878
  • 10
  • 53
  • 97
3
votes
3 answers

How to check if file exist when downloading from FTP

I'm downloading from FTP server and I don't know exactly how to check if file already exist. What I want to do is that I retrieve filname from FTP server and then compare it with all files in folder. If file already exists then it compares next FTP…
Igor
  • 253
  • 3
  • 5
  • 14
3
votes
1 answer

Cannot use GetDateTimestamp for FTP folder

I have to copy files to a particular directory. Before copying the files, I have to check if the directory already exists (if not then, create one). To check the existence of a directory, I try to get the timestamp of that directory. If the…
skm
  • 5,015
  • 8
  • 43
  • 104
3
votes
2 answers

EOFError while connecting to FTP server in Python

I am trying to connect to FTP server to transfer a file. Here is my code; import ftplib ftp = ftplib.FTP() host = host_name port = 22 ftp.connect(host, port) ftp.login(username, password) But here is the error I got. Can anybody please help me? I…
Ishwor Bhatta
  • 139
  • 1
  • 3
  • 13
1 2 3
99
100