Questions tagged [ftplib]

ftplib — FTP protocol client under Python programming language

ftplib is a python module which defines the class FTP and a few related items.

The FTP class implements the client side of the FTP protocol. You can use this to write Python programs that perform a variety of automated FTP jobs, such as mirroring other ftp servers. It is also used by the module urllib.request to handle URLs that use FTP. For more information on FTP (File Transfer Protocol), see Internet RFC 959.

Read more about ftplib at python docs..

681 questions
-2
votes
1 answer

FTP upload using python, having trouble with rb mode

I have a zip file to upload. I know how to upload it.I open the file with "Rb" mode. When i want to extract the zip file that i uploaded i get an error and files in the ZIP archive are gone, i think that's because of the "Rb" mode . I don't know how…
MR.crazy
  • 3
  • 2
-2
votes
1 answer

Why is my Image losing data through my Python FTP program?

My Python program sends an image to my web server through FTP, but occasionally upon arrival, partial data is lost from the transferred image. The program takes a screenshot every x amount of seconds and then uploads the image to the web server. My…
jameson1128
  • 135
  • 2
  • 13
-2
votes
1 answer

FTP not running on PC

I was trying this FTP file transfer code. The thing is that when I had run this code on an online environment(a workspace that I created on Cloud 9) then it worked fine and uploaded the file but when I run this on my PC I get an ERROR. How can I…
Strinzy
  • 41
  • 2
  • 7
-2
votes
1 answer

Am I committing a crime with the ftplib library?

With these three lines of Python code: from ftplib import FTP ftp=FTP("ftp.ncdc.noaa.gov") ftp.login() I successfully login to the FTP server of NOAA (National Oceanic and Atmospheric Administration), but I get this message printed as…
multigoodverse
  • 7,638
  • 19
  • 64
  • 106
-2
votes
2 answers

Check for files/folders inside a dir python ftplib

I'm just learning Python, got Python 2 installed and was trying to figure out how you can go about testing whether a directory contains any files (as well as directories). Could anyone help? I've seen similar examples not related to the ftplib…
Ant
  • 1
-3
votes
1 answer

Error in downloading file from a FTP site

import ftplib ftp = ftplib.FTP() ftp.cwd('ftp://ftp.cdc.noaa.gov/Datasets/cpc_global_precip/') *** AttributeError: 'NoneType' object has no attribute 'sendall' Any reason why I am getting the error message above? I can access the FTP site through…
user308827
  • 21,227
  • 87
  • 254
  • 417
1 2 3
45
46