kkpyutil 1.50.1__tar.gz → 1.51.0__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.50.1 → kkpyutil-1.51.0}/PKG-INFO +1 -1
- {kkpyutil-1.50.1 → kkpyutil-1.51.0}/kkpyutil.py +11 -0
- {kkpyutil-1.50.1 → kkpyutil-1.51.0}/pyproject.toml +1 -1
- {kkpyutil-1.50.1 → kkpyutil-1.51.0}/LICENSE +0 -0
- {kkpyutil-1.50.1 → kkpyutil-1.51.0}/README.md +0 -0
- {kkpyutil-1.50.1 → kkpyutil-1.51.0}/kkpyutil_helper/windows/kkttssave.ps1 +0 -0
- {kkpyutil-1.50.1 → kkpyutil-1.51.0}/kkpyutil_helper/windows/kkttsspeak.ps1 +0 -0
|
@@ -3238,6 +3238,17 @@ def prompt_macos_admin_password(action="Your operation"):
|
|
|
3238
3238
|
return None
|
|
3239
3239
|
|
|
3240
3240
|
|
|
3241
|
+
def join_unc_paths(*paths):
|
|
3242
|
+
# 1. Standardize all inputs to use backslashes and filter out empty strings
|
|
3243
|
+
segments = [str(p).replace('/', '\\').strip('\\') for p in paths if p]
|
|
3244
|
+
|
|
3245
|
+
# 2. Handle the leading slash: if the first input started with \, preserve it
|
|
3246
|
+
prefix = '\\' if paths[0].startswith(('\\', '/')) else ''
|
|
3247
|
+
|
|
3248
|
+
# 3. Join everything with single backslashes
|
|
3249
|
+
return prefix + '\\'.join(segments)
|
|
3250
|
+
|
|
3251
|
+
|
|
3241
3252
|
# endregion
|
|
3242
3253
|
|
|
3243
3254
|
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|