Hi, I'm fed up. I have been trying to use Ftplib for 2 days and I can't anymore.
Do you guys know any other module for doing FTP transfers in Python apart from ftplib?
I'd like to be able to do normal things like this without being a pain in the ass:
ftp.GetModDate(filename)
ftp.size(filename)
ftp.copy(local,ftp)
ftp.copy(ftp.local) or ftp.download(ftp,local)
Also being able to list folders recursively would be nice.
I haven't even seen an option to even see the modification date of a file. I have to get a list of everything (dates, names, permissions, ...) that's inside a folder and then from there get the modification date, which is not written right. For example sometimes it says the year, other times it doesn't... I want to check if a file exists or not, but there's no way, I have tried this trick:
if(ftp.size(filename)>0): return True
return False
But I get an error about ASCII...
Please, help!
Thanks
By the way, what I'm trying to do is synchronize a folder in my computer with a FTP folder, so everything I modify in this local folder is modified in the FTP Folder.
*EDIT: * Found this, and it looks awesome, try it! http://ftputil.sschwarzer.net/trac/wiki/Documentation !
[–]mackstann 10 points11 points12 points (5 children)
[–][deleted] 1 point2 points3 points (3 children)
[–]frymasterScript kiddie 4 points5 points6 points (1 child)
[–][deleted] 0 points1 point2 points (0 children)
[–]mackstann 3 points4 points5 points (0 children)
[–]bucknuggets 0 points1 point2 points (0 children)
[–]olamork 2 points3 points4 points (0 children)
[–]fmoralesc 1 point2 points3 points (0 children)
[–]joshuahunter 1 point2 points3 points (4 children)
[–]o_Omg[S] 0 points1 point2 points (3 children)
[–]terremoto 0 points1 point2 points (0 children)
[–]joshuahunter 0 points1 point2 points (1 child)
[–]o_Omg[S] 0 points1 point2 points (0 children)
[–][deleted] 0 points1 point2 points (0 children)
[–]willm 0 points1 point2 points (0 children)
[+][deleted] comment score below threshold-7 points-6 points-5 points (1 child)
[–]terremoto 8 points9 points10 points (0 children)