Tweaked, tested paths and turned testing off

This commit is contained in:
Dan
2023-06-02 11:19:57 -04:00
parent c308d9a639
commit 3069ce11c4

14
main.py
View File

@@ -26,14 +26,14 @@ if remoteOn is True:
t = os.path.getmtime(local_path + file)
age = (time.time() - t) / 86400
if age >= 1:
if file.startswith('kitty'):
# shutil.move(local_path + file, remote_path + 'Kitty/' + file)
print('Kitty File ' + local_path + file, remote_path + 'Kitty/' + file)
# logging.info('-- Moved Kitty file %s', file)
if file.startswith('Kitty'):
shutil.move(local_path + file, remote_path + 'Kitty\\' + file)
# print('Kitty File ' + local_path + file + remote_path + 'Kitty\\' + file)
logging.info('-- Moved Kitty file %s', file)
else:
# shutil.move(local_path + file, remote_path + file)
print('Normal File ' + local_path + file, remote_path + 'Kitty/' + file
# logging.info('-- Moved %s', file)
shutil.move(local_path + file, remote_path + file)
# print('Normal File ' + local_path + file + remote_path + file)
logging.info('-- Moved %s', file)
for file in os.listdir(remote_path):
t = os.path.getmtime(remote_path + file)
age = (time.time() -t) / 86400