I am using python with ftplib to upload images to a folder on my raspberryPi located in / var / www. Everything works fine, except the downloaded files have 600 permissions and I need 644 for them.
What is the best way to do this? I am looking for something like:
def ftp_store_avatar(name, image): ftp = ftp_connect() ftp.cwd("/img") file = open(image, 'rb') ftp.storbinary('STOR ' + name + ".jpg", file)
source share