Tweaked, tested paths and turned testing off
This commit is contained in:
14
main.py
14
main.py
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user