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
30
votes
4 answers

Python ftplib - specify port

I would like to specify the port with Python's ftplib client (instead of default port 21). Here is the code: from ftplib import FTP ftp = FTP('localhost') # connect to host, default port Is there an easy way to specify an alternative port?
user284244
29
votes
4 answers

FTPES - FTP over explicit TLS/SSL in Python

I need a python client to do FTPES (explicit), does anyone has experience with any python package that can do this. I am not able to do this in python, but can connect to FTP server using tools like FileZilla Thanks
user424060
  • 1,545
  • 3
  • 20
  • 29
29
votes
6 answers

Cocoa error 260

I keep getting this error. I'm uploading via ftp to a server. It works fine and uploads completely while running in the simulator, but when I provision it on my iPhone, it says: Error Occurred. Upload failed: The operation couldn’t be completed.…
Chris
  • 7,270
  • 19
  • 66
  • 110
29
votes
4 answers

Does GIT support push to an ftp server?

I believe git ftp support is a somewhat recent addition, but the git push docs do clearly state that "Git natively supports ssh, git, http, https, ftp, ftps, and rsync protocols." (emphasis added) However, others have asked what to do if git fails…
yoyo
  • 8,310
  • 4
  • 56
  • 50
29
votes
4 answers

How to synchronize files over FTP with Eclipse RSE?

I installed Helios, which has the latest version of the RSE package, and I could copy files from the remote server just fine, but I don't seem to be able to use the "Review/Synchronize" option. I select the folder on the remote directory, specify…
chrismarx
  • 11,488
  • 9
  • 84
  • 97
29
votes
4 answers

How to get the FTP error when using PHP

I have a script which logs on to a remote server and tries to rename files, using PHP. The code currently looks something like this example from the php.net website: if (ftp_rename($conn_id, $old_file, $new_file)) { echo "successfully renamed…
AmbroseChapel
  • 11,957
  • 7
  • 46
  • 68
29
votes
1 answer

Using R to download newest files from ftp-server

I have a a number of files named FileA2014-03-05-10-24-12 FileB2014-03-06-10-25-12 Where the part "2014-03-05-10-24-12" means "Year/Day/Month/Hours/Minutes/Seconds/". These files reside on a ftp-server. I would like to use R to connect to the…
Alexander
  • 624
  • 2
  • 7
  • 18
29
votes
7 answers

Downloading all the files in a directory with cURL

I am using cURL to try to download all files in a certain directory. here's what my list of files looks like: I have tried to do in bash script: iiumlabs.[].csv.pgp and iiumlabs* and I guess curl is not big on wildcards. curl -u login:pass…
Alex Gordon
  • 57,446
  • 287
  • 670
  • 1,062
28
votes
4 answers

How can we show progress bar for upload with FtpWebRequest

I am uploading files to ftp using FtpWebRequest. I need to show the status that how much is done. So far my code is: public void Upload(string filename, string url) { FileInfo fileInf = new FileInfo(filename); string uri = "ftp://" + url +…
user785039
28
votes
5 answers

MSBuild Community Tasks Documentation

Is it just me or is the documentation on this project really scarce? I'm trying to find how to use the FtpCreateRemoteDirectory and FTP functionality in general, but can't seem to find anything. Googling FtpCreateRemoteDirectory, only shows the…
Bertvan
  • 4,943
  • 5
  • 40
  • 61
28
votes
3 answers

Google Drive as FTP Server

Is there a way to use Google Drive as an FTP Server? I mean I have host, username and password and using Filezilla I can access GDrive folders, upload and download data and automate backups with many softwares. It isn't important if the protocol is…
Mattia Merlini
  • 643
  • 1
  • 8
  • 24
28
votes
2 answers

Uploading all of files in my local directory with curl

I want to upload all the files in one directory, and I know how to upload one file using curl like this : curl -T "local/xxx.suffix" -u xxx:psw "ftp://192.168.1.158/public/demon_test/xxx.suffix" How can I upload all the files (subdirectory) in the…
demon
  • 833
  • 1
  • 10
  • 20
27
votes
5 answers

How to determine whether a file is still being transferred via ftp

I have a directory with files that need processing in a batch with PHP. The files are copied on the server via FTP. Some of the files are very big and take a long time to copy. How can I determine in PHP if a file is still being transferred (so I…
murze
  • 4,015
  • 8
  • 43
  • 70
27
votes
8 answers

FTPClient - Java, upload file

I'm trying to do a VERY simple file upload. I want a Java FTPClient that can upload any file I tell it to. But the pdf always gets all messed up and my pdf editor (Adobe) won't open it, saying there is an I/O error. I'm using the following class: …
CodeGuy
  • 28,427
  • 76
  • 200
  • 317
27
votes
9 answers

FTP copy a file to another place in same FTP

I need to upload same file to 2 different place in same FTP. Is there a way to copy the file on the FTP to the other place instead of upload it again? Thanks.
Stan
  • 37,207
  • 50
  • 124
  • 185