Python script to sort photos into folders based on the exif date

This script developed by OneLogicalMyth could be useful for some people

2 Likes

But keep in mind that this script operates directly on the data folder. This means it doesn’t work with external storages and maybe even more important: You will lose shares, favorites and all other meta data if the script moves your pictures.

1 Like

I think the idea is to monitor a folder where images are automatically uploaded and they would be moved before sharing, but good point nonetheless.

Hi,

I modified a lot the original python script for use it also with videos and maybe to solve duplicates files. Is still in alpha version, if you want test it…work in progress :slight_smile:

Thanx to https://github.com/OneLogicalMyth/Random-Scripts/tree/master/NextCloud for the inspiration.

this is my script: https://github.com/vpistis/OrganizeMediaFiles

Hi!

Can i ask your help!
When i try to use your script i got the following error:

Traceback (most recent call last):
File “organize_media_files.py”, line 22, in
from .utils.py import Logger, get_setting, which
ValueError: Attempted relative import in non-package

Thank you for your help!

BR Gábor

Sorry wrong error message…
The right is:

Traceback (most recent call last):
File “organize_media_files.py”, line 22, in
from .utils import Logger, get_setting, which
ValueError: Attempted relative import in non-package