Refactor(utils): mark ExistingDirectory and ExistingFile as deprecated #14

Merged
jakob.scheid merged 4 commits from refactor/remove-existing-file-class into main 2026-09-05 14:44:21 +02:00
Owner

ExistingDirectory and ExistingFile deprecation

This pull request marks the ExistingDirectory and ExistingFile utility classes as deprecated. All instances of them were replaced with pathlib.Path or completely removed, if possible.

Related issues

Partially addresses #8

# `ExistingDirectory` and `ExistingFile` deprecation This pull request marks the `ExistingDirectory` and `ExistingFile` utility classes as deprecated. All instances of them were replaced with `pathlib.Path` or completely removed, if possible. ## Related issues Partially addresses #8
jakob.scheid added this to the 0.2.0 milestone 2026-09-05 14:34:18 +02:00
jakob.scheid added the Kind/Documentation
Priority
Medium
3
Kind/ChoreKind/Refactor
labels 2026-09-05 14:34:18 +02:00
jakob.scheid added this to the Project Board project 2026-09-05 14:34:18 +02:00
jakob.scheid added 3 commits 2026-09-05 14:34:18 +02:00
jakob.scheid moved this to Review in Project Board on 2026-09-05 14:34:21 +02:00
jakob.scheid modified the milestone from 0.2.0 to existing-file-existing-directory-removal 2026-09-05 14:35:06 +02:00
@@ -28,2 +26,3 @@
def existing_directory(path: str) -> pathlib.Path:
try:
return ExistingDirectory(path, *args, **kwargs)
return pathlib.Path(path)
Author
Owner

There is no check whether the directory exists.

There is no check whether the directory exists.
jakob.scheid marked this conversation as resolved
jakob.scheid added 1 commit 2026-09-05 14:42:26 +02:00
jakob.scheid force-pushed refactor/remove-existing-file-class from 694a1c25f6 to 78e3e020be 2026-09-05 14:42:26 +02:00 Compare
jakob.scheid added spent time 6 minutes 2026-09-05 14:43:16 +02:00
jakob.scheid merged commit 3cd374c354 into main 2026-09-05 14:44:21 +02:00
jakob.scheid deleted branch refactor/remove-existing-file-class 2026-09-05 14:44:21 +02:00
jakob.scheid moved this to Done in Project Board on 2026-09-05 14:44:27 +02:00
Sign in to join this conversation.
No Reviewers
1 Participants
Notifications
Total Time Spent: 6 minutes
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: jCloud/jcloud-docsgen#14