Skip to main content

All Questions

Tagged with
1 vote
1 answer
198 views

Python FTP download fails with "421 Timeout - try typing a little faster next time"

I have my domain on a server and the server runs a script each night to perform a backup. The backup is saved on the server in a specific location with the date appended to the end of the filename ...
Kevin's user avatar
  • 35
0 votes
0 answers
55 views

Download every file and every subdirectory from an ftp server [duplicate]

I am trying to download every file from my ftp server (as a kind of backup program), and then zip it. So far all i have is this code. import os from ftplib import FTP from datetime import datetime dt ...
user avatar
1 vote
1 answer
855 views

How to count how many data has been downloaded in the last second? (FTP)

I want to know how many data has been downloaded in the last 1 second. I don't have a code yet but I was wondering when I should start counting this 1 second and how to do it. Should I start counting ...
Aspect013's user avatar
3 votes
1 answer
8k views

Show FTP download progress in Python (ProgressBar)

I am downloading files over FTP using the following Python script. What I wanted is to see the details of the progress while downloading. For that I used ProgressBar but it isn't showing anything. ...
Marshmellow's user avatar
3 votes
1 answer
4k views

Python: File download using ftplib hangs forever after file is successfully downloaded

I have been trying to troubleshoot an issue where in when we are downloading a file from ftp/ftps. File gets downloaded successfully but no operation is performed post file download completion. No ...
Manish Mehra's user avatar
  • 1,501
1 vote
1 answer
1k views

Problems downloading files from ftp server to directory

I am trying to download files from an ftp server to a local folder. Below I have included my code, the script is able to access the ftp succesfully and list the names of the files on the ftp server ...
user avatar
2 votes
1 answer
1k views

"Permission denied" error from downloading all files from FTP folder

So far I have the gotten the names of the files I need from the FTP site. See code below. from ftplib import FTP import os, sys, os.path def handleDownload(block): file.write(block) ddir='U:/...
user avatar
0 votes
1 answer
124 views

How to download a specific file type from all subdirectories of an FTP server?

I am trying to download all .laz files from the FTP host gis.arkansas.gov (more details here). Looking at the ftplib documentation, I see that I can list all of the directories in the FTP server: ...
Borealis's user avatar
  • 8,354
-1 votes
1 answer
677 views

Python and wxpython how to use a button to download a file from ftp

okay right now i am using ftp to download a file for my application but the problem is the code as it stands downloads the files when i launch the program and does nothing when i click the download ...
raziel23x's user avatar
2 votes
3 answers
5k views

How to list all folders in a ftp directory?

I am trying to list the folders in a ftp directory so that the output is as follows: [32114, 32115, 32116, ..., 42123] The following script accesses the ftp site. How can I access the folders in ...
Borealis's user avatar
  • 8,354
1 vote
1 answer
2k views

Downloading from an ftp using Python

I have a piece of code in Python to download files from an ftp. The code downloads the very first file in the list of available days but fails to download the second. What could be the problem? ...
Farhad Irani's user avatar
2 votes
1 answer
1k views

Getting TypeError when trying to download .zip from FTP server

I am trying to download a .zip file from a FTP server and I keep getting this error: File "C:/filename.py", line 37, in handleDownload file.write(block) TypeError: descriptor 'write' requires a 'file'...
Mark Collier's user avatar