kkpyutil 1.49.2__tar.gz → 1.49.4__tar.gz
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- {kkpyutil-1.49.2 → kkpyutil-1.49.4}/PKG-INFO +1 -1
- {kkpyutil-1.49.2 → kkpyutil-1.49.4}/kkpyutil.py +5 -6
- {kkpyutil-1.49.2 → kkpyutil-1.49.4}/pyproject.toml +1 -1
- {kkpyutil-1.49.2 → kkpyutil-1.49.4}/LICENSE +0 -0
- {kkpyutil-1.49.2 → kkpyutil-1.49.4}/README.md +0 -0
- {kkpyutil-1.49.2 → kkpyutil-1.49.4}/kkpyutil_helper/windows/kkttssave.ps1 +0 -0
- {kkpyutil-1.49.2 → kkpyutil-1.49.4}/kkpyutil_helper/windows/kkttsspeak.ps1 +0 -0
|
@@ -2110,18 +2110,18 @@ def sync_dirs(src_root, dst_root, logger=glogger, sudo=False):
|
|
|
2110
2110
|
return False
|
|
2111
2111
|
if not sudo:
|
|
2112
2112
|
# Iterate through the items inside the source directory
|
|
2113
|
-
for
|
|
2114
|
-
src_path = os.path.join(src_root,
|
|
2115
|
-
dst_path = os.path.join(dst_root,
|
|
2113
|
+
for subpath in os.listdir(src_root):
|
|
2114
|
+
src_path = os.path.join(src_root, subpath)
|
|
2115
|
+
dst_path = os.path.join(dst_root, subpath)
|
|
2116
2116
|
if os.path.isdir(src_path):
|
|
2117
2117
|
# copytree with dirs_exist_ok=True will overwrite existing files
|
|
2118
2118
|
# and merge directories without warning.
|
|
2119
2119
|
shutil.copytree(src_path, dst_path, dirs_exist_ok=True)
|
|
2120
|
-
logger.info(f"
|
|
2120
|
+
logger.info(f"Merged directory: {src_path} -> {dst_path}")
|
|
2121
2121
|
else:
|
|
2122
2122
|
# For individual files at the root of my_src_dir
|
|
2123
2123
|
shutil.copy2(src_path, dst_path)
|
|
2124
|
-
logger.info(f"Copied file: {
|
|
2124
|
+
logger.info(f"Copied file: {src_path} -> {dst_path}")
|
|
2125
2125
|
return True
|
|
2126
2126
|
# on macOS, merge to system folders
|
|
2127
2127
|
# Identify the original user (the one who called sudo)
|
|
@@ -2140,7 +2140,6 @@ def sync_dirs(src_root, dst_root, logger=glogger, sudo=False):
|
|
|
2140
2140
|
# Note: 'staff' is the default group for users on macOS
|
|
2141
2141
|
cmd = [
|
|
2142
2142
|
'rsync', '-av', '--inplace',
|
|
2143
|
-
f'--chown={user}:staff',
|
|
2144
2143
|
osp.join(src_root, ''), # Trailing slash copies contents
|
|
2145
2144
|
dst_root
|
|
2146
2145
|
]
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|