Skip to content

Simple helper to upload new AkaDressen to the Hompage

Notifications You must be signed in to change notification settings

AkaBlas/akadressen-upload

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

1 Commit
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

akadressen-upload

Small helper script to upload new AkaDressen files to internal section of the AkaBlas Homepage. It requires Python 3.12+.

Setting in up

Create a file .env with the following contents:

FTP_host=<host address of the ftp server>
FTP_USERNAME=<username>
FTP_PASSWORD=<password>
SOURCE_PATH=<path to the folder containing the files to upload>
TARGET_PATH=<path to the folder on the ftp server where the files should be uploaded>

Usage

Run the script with the following command:

python main.py

How It Works

The script does the following:

  1. Rename all files starting with latest_. The new prefix is the modification date of the file.
  2. Upload all files to the ftp server. The files will be prefixed with latest_.

About

Simple helper to upload new AkaDressen to the Hompage

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages