Replace dazzlelink/path.py with dazzle-filekit
Problem
DazzleLink's dazzlelink/path.py reimplements path utilities that already exist in the shared dazzle-filekit library:
normalize_path() -- duplicated
UNCAdapter -- duplicates unctools functionality
- No
get_relative_path() -- uses raw os.path.relpath() instead of filekit's cross-drive-aware version
Proposed solution
Replace dazzlelink/path.py internals with imports from dazzle-filekit and unctools:
from dazzle_filekit.paths import normalize_path, get_relative_path, is_unc_path, split_drive_letter
from unctools import UNCConverter
- Keep
dazzlelink/path.py as a thin facade for backward compatibility
Acceptance criteria
Related issues
Replace dazzlelink/path.py with dazzle-filekit
Problem
DazzleLink's
dazzlelink/path.pyreimplements path utilities that already exist in the shareddazzle-filekitlibrary:normalize_path()-- duplicatedUNCAdapter-- duplicatesunctoolsfunctionalityget_relative_path()-- uses rawos.path.relpath()instead of filekit's cross-drive-aware versionProposed solution
Replace
dazzlelink/path.pyinternals with imports fromdazzle-filekitandunctools:from dazzle_filekit.paths import normalize_path, get_relative_path, is_unc_path, split_drive_letterfrom unctools import UNCConverterdazzlelink/path.pyas a thin facade for backward compatibilityAcceptance criteria
dazzle-filekitadded as dependency inpyproject.tomlunctoolsadded as dependencypath.pydelegates to shared librariesRelated issues