fixed uploading html/pngs in website func... agian...again
This commit is contained in:
parent
db775e32ce
commit
be2ccd7c46
1 changed files with 2 additions and 2 deletions
|
|
@ -1068,11 +1068,11 @@ async def website(ctx):
|
||||||
|
|
||||||
for filename in os.listdir(local_folder):
|
for filename in os.listdir(local_folder):
|
||||||
if ".png" in filename:
|
if ".png" in filename:
|
||||||
await upload_sftp(filename, (os.getenv('ftp_public_html') + 'ai-webpage/'), filename)
|
await upload_sftp(filename.decode(), (os.getenv('ftp_public_html') + 'ai-webpage/'), filename.decode())
|
||||||
#explicitly upload html files last!
|
#explicitly upload html files last!
|
||||||
for filename in os.listdir(local_folder):
|
for filename in os.listdir(local_folder):
|
||||||
if ".html" in filename:
|
if ".html" in filename:
|
||||||
await upload_sftp(filename, (os.getenv('ftp_public_html') + 'ai-webpage/'), filename)
|
await upload_sftp(filename.decode(), (os.getenv('ftp_public_html') + 'ai-webpage/'), filename.decode())
|
||||||
|
|
||||||
|
|
||||||
server_folder = ftp_public_html + 'ai-webpage/'
|
server_folder = ftp_public_html + 'ai-webpage/'
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue