ftplib Questions
2
I am trying to use ftplib.FTP() with timeout option as some timeout value for a particular hostname. But i am experiencing weird behaviour. To test it i have written a very simple piece of code.
i...
Gans asked 10/2, 2015 at 10:34
2
Solved
I'm using python with ftplib to upload images to a folder on my raspberryPi located in /var/www.
Everything is working fine except that uploaded files have 600 permissions and I need 644 for them.
...
Nephogram asked 11/9, 2014 at 16:52
1
Solved
I cannot set ctime/mtime on my file within Python. First I get the original timestamp of the file through FTP.
The only thing I want is to keep the original timestamps on my downloaded files using ...
1
Solved
UPDATE #1
The code in the question works pretty good for stable connection (like local network or intranet).
UPDATE #2
I implemented the FTPClient class with ftplib which can:
monitor a download p...
3
Solved
I am trying to read a file from an FTP server. The file is a .gz file. I would like to know if I can perform actions on this file while the socket is open. I tried to follow what was mentioned in t...
1
2
Solved
I have the following python script for an upload that needs to show percent done. I am having trouble incrementing the variable that tracks the amount of data transferred.
I get an
UnboundLocalErro...
Vaden asked 7/6, 2013 at 16:21
1
I'm a newbie in Python programming.
My question is, how to download a few files at the same time. Not file by file but simultaneously from one directory on ftp. Now I use this script but I don't k...
Blueing asked 22/4, 2013 at 6:41
0
I can't figure out how to pick between ftplib and urllib2 for downloading a file over FTP. As far as I can tell, they work comparably well, and most recommendations just seem to presume one o...
1
Solved
I have a FTP connection from which I am downloading many files and processing them in between. I'd like to be able to check that my FTP connection hasn't timed out in between. So the code looks som...
2
How exactly would you create a list of the entries in an FTP directory?
This is my code so far:
import ftplib
files = []
my_ftp = ftplib.FTP(HOST)
my_ftp.login(USERNAME,PASSWORD)
line = my_ftp...
2
Solved
I'm trying to use ftplib to get a file listing and download any new files since my last check. The code I'm trying to run so far is:
#!/usr/bin/env python
from ftplib import FTP
import sys
host =...
3
I'm using ftplib to transfer files. Everything is working great. Now I'm trying to get the size of the target file before downloading.
First, I tried just getting size with ftp.size(filename). Se...
1
Solved
I need to download a file from a host using SFTP.
Do you know if is it possible to do that using Python ftplib?
I saw an example here, but when I try to connect I receive EOFError.
I tried ...
3
Solved
I have created a PHP-script to update a web server that is live inside a local directory.
I'm migrating the script into Python. It works fine for the most part, but after a PUT command, the size of...
© 2022 - 2024 — McMap. All rights reserved.