no screenshots.py

This commit is contained in:
2020-07-16 17:17:26 +02:00
parent b5f989d483
commit 8993f7a27d
+19
View File
@@ -0,0 +1,19 @@
import os
import shutil
desktop_abs_path = "/Users/marcpartensky/Desktop"
images_abs_path = "/Users/marcpartensky/Pictures/Images"
files = os.listdir(desktop_abs_path)
captures = []
for file in files:
if file.startswith('Capture'):
captures.append(file)
while len(captures)>0:
source = os.path.join(desktop_abs_path, captures[0])
destination = os.path.join(images_abs_path, captures[0])
shutil.move(source, destination)
del captures[0]