Compare commits
3 Commits
3bb1600e62
...
1ad307a462
Author | SHA1 | Date | |
---|---|---|---|
1ad307a462 | |||
4db77da2ac | |||
58fd1ca733 |
3
.vscode/settings.json
vendored
Normal file
3
.vscode/settings.json
vendored
Normal file
@ -0,0 +1,3 @@
|
|||||||
|
{
|
||||||
|
"editor.acceptSuggestionOnEnter": "on"
|
||||||
|
}
|
@ -7,8 +7,14 @@ import pathlib
|
|||||||
from PIL import Image, ExifTags
|
from PIL import Image, ExifTags
|
||||||
import pendulum
|
import pendulum
|
||||||
|
|
||||||
INGEST_DIR = pathlib.PureWindowsPath(
|
from tkinter import filedialog
|
||||||
r'C:\Users\ahosking\Nextcloud\Camera Uploads\Alex\2022')
|
from tkinter import *
|
||||||
|
root = Tk()
|
||||||
|
root.withdraw()
|
||||||
|
INGEST_DIR = filedialog.askdirectory()
|
||||||
|
|
||||||
|
# INGEST_DIR = pathlib.PureWindowsPath(
|
||||||
|
# r'C:\Users\ahosking\Nextcloud\Camera Uploads\Alex\2022')
|
||||||
PHOTO_LIBRARY = '//192.168.1.4/photos/photo_library/'
|
PHOTO_LIBRARY = '//192.168.1.4/photos/photo_library/'
|
||||||
# TODO: Add dircectory traversal
|
# TODO: Add dircectory traversal
|
||||||
file_list = []
|
file_list = []
|
||||||
@ -24,8 +30,8 @@ def compare_and_move():
|
|||||||
print(root, d_names, f_names)
|
print(root, d_names, f_names)
|
||||||
print(file_list)
|
print(file_list)
|
||||||
print(len(file_list))
|
print(len(file_list))
|
||||||
process_files(file_list)
|
# process_files(file_list)
|
||||||
remove_empty_directories(INGEST_DIR)
|
# remove_empty_directories(INGEST_DIR)
|
||||||
|
|
||||||
|
|
||||||
def process_files(file_list):
|
def process_files(file_list):
|
||||||
|
Loading…
Reference in New Issue
Block a user