Compare commits

..

No commits in common. '115eb8d0c6c64e42bb570dae98c443d07f8a1938' and '722aa4ef3a5fdd0f7f8188fadb58647c7b107ac0' have entirely different histories.

6
.gitignore vendored

@ -1,6 +0,0 @@
/venv
/dist
/build
/__pycache__
my_data.db
.DS_Store

@ -13,4 +13,4 @@ if __name__ == '__main__':
sys.exit(app.exec_()) sys.exit(app.exec_())
# pyinstaller --onefile bunnysync.py --add-data "images/realrabbit.png:images" --add-data "images/realrabbit2.png:images" --icon=images/realrabbit.png --noconsole # pyinstaller --onefile bunnysync.py --add-data "images/realrabbit.ico:images" --add-data "images/realrabbit2.png:images" --icon=images/realrabbit.png --noconsole

@ -1,45 +0,0 @@
# -*- mode: python ; coding: utf-8 -*-
a = Analysis(
['bunnysync.py'],
pathex=[],
binaries=[],
datas=[('images/realrabbit.ico', 'images'), ('images/realrabbit2.png', 'images')],
hiddenimports=[],
hookspath=[],
hooksconfig={},
runtime_hooks=[],
excludes=[],
noarchive=False,
optimize=0,
)
pyz = PYZ(a.pure)
exe = EXE(
pyz,
a.scripts,
a.binaries,
a.datas,
[],
name='bunnysync',
debug=False,
bootloader_ignore_signals=False,
strip=False,
upx=True,
upx_exclude=[],
runtime_tmpdir=None,
console=False,
disable_windowed_traceback=False,
argv_emulation=False,
target_arch=None,
codesign_identity=None,
entitlements_file=None,
icon=['images/realrabbit.ico'],
)
app = BUNDLE(
exe,
name='bunnysync.app',
icon='images/realrabbit.ico',
bundle_identifier=None,
)

@ -74,7 +74,6 @@ class FolderSynchronizer:
count_sync = 0 count_sync = 0
for root, _, files in os.walk(src_folder): for root, _, files in os.walk(src_folder):
for filename in files: for filename in files:
try:
src_path = os.path.join(root, filename) src_path = os.path.join(root, filename)
rel_dir = os.path.relpath(root, src_folder) rel_dir = os.path.relpath(root, src_folder)
dest_path = os.path.join(dest_folder, rel_dir, filename) dest_path = os.path.join(dest_folder, rel_dir, filename)
@ -99,9 +98,7 @@ class FolderSynchronizer:
modified1, exist1, modified2, exist2 = src_modified, 1, dest_modified, 1 modified1, exist1, modified2, exist2 = src_modified, 1, dest_modified, 1
else: else:
modified1, exist1, modified2, exist2 = src_modified, 1, file_info[5], file_info[6] modified1, exist1, modified2, exist2 = src_modified, 1, file_info[5], file_info[6]
except:
pass
finally:
self.update_db(rel_dir, filename, modified1, exist1, modified2, exist2) self.update_db(rel_dir, filename, modified1, exist1, modified2, exist2)
return total_sync, count_sync return total_sync, count_sync

Loading…
Cancel
Save