Skip to content

Latest commit

 

History

History
57 lines (34 loc) · 2 KB

README.md

File metadata and controls

57 lines (34 loc) · 2 KB

Filemover

Getting Started

Moves Moments/Classifieds exports into folders based on publication days, via the rundate tags from corresponding xml file. Usage: run from parent folder, and name folders "Oyeblikk" and/or "Torg".

Running as executable (Mac)

The executable file "filemover" should be placed in a directory next to subfolders named "Oyeblikk" and "Torg", containing the raw export files from the ftp server. See "File Structure" below for details.

Run the script from the terminal, (it will not work if run from Finder) by entering the directory filemover is located and type:

./filemover

Running as python3 script (Windows)

Alternatively to running the executable, "filemover.py" the script also from windows environments. Make sure python 3 is installed.

The script "filemover.py" should be placed in a directory next to subfolders named "Oyeblikk" and "Torg", containing the raw export files from the ftp server. See "File Structure" below for details.

Run the script from the terminal, by entering the directory filemover.py is located and type:

python3 filemover.py

File structure

Initial file structure when running the filemover:

├── Oyeblikk                    # Raw Moments export files
│   ├── 88_32054_1542356134.pdf            # Exported pdf card(s)
│   ├── 88_32054_1542356134.xml            # Corresponding XML file(s)
│   └── ...                                
├── Torg                        # Raw Classifieds export files
│   ├── 88_32054_1542356134.pdf            # Exported pdf card(s)
│   ├── 88_32054_1542356134.xml            # Corresponding XML file(s)
│   └── ...                                
└── filemover / filemover.py    # Executable or python script

Authors

License

This project is licensed under the GNU General Public License v3.0 - see the their website file for details