In FTP, the structure looks like this: For example: So each year has 12 folders (one for each month), each month contains multiple folders (one for one day), and each day have multiple csv files (filename is consisted of the date_xx.csv). I have a list of filenames that I want to download, for example: My current code behaves like this:
Tag: ftp
Controlling port numbers in use when connecting to FTP via Python’s ftplib behind a firewall
I’m trying to connect to a FTP server from behind a firewall that accepts outputs from the port range 6100–6200 only. I’m (rather naively, but based on a read of the documentation) trying: But this gives the error: From the same machine, I can successfully list the files using curl: How can I connect to a regular (i.e. port 21)
Make Discord BOT get random image from a ftp server (Filezilla)
I’m just gonna say it right away that I have no experience whatsoever in python. I’m trying to make a bot for a private Discord server that posts a random image (.jpg) from a ftp server (root directory) after typing ‘$gimme’. #file names are random jibberish I’ve searched for hours to find a solution but I always get stuck at
Error after FTPS transfer finishes with Python ftplib
I’m trying to upload file into FTPS server (Wing FTP Server / Cerberus FTP Server 8) with following script. But I keep getting this error. This is FTPS server log. Can anyone tell me what is wrong?!! PS: I don’t know it matters or not but i can easily download from this FTPS server and only cant upload into it.