feature: workspace node tools types module - #129
Merged
miguelramos merged 4 commits intoJan 13, 2026
Merged
Conversation
Implement the FileType enum as the first component of the types module: - Add FileType enum with File, Dir, Symlink variants (FR-5.2.1) - Implement is_file(), is_dir(), is_symlink() methods (FR-5.2.2-FR-5.2.4) - Add derives: Debug, Clone, Copy, PartialEq, Eq (FR-5.2.5) - Implement From<std::fs::FileType> conversion - Add FileType to public re-exports - Add comprehensive unit tests (14 tests) - All clippy, fmt, and doc checks pass Closes: workspace-node-tools-3q8.1
Implement the Metadata struct as the second component of the types module: - Add Metadata struct with file_type and len fields - Implement new(), len(), is_empty(), file_type() methods (FR-5.3.1-FR-5.3.5) - Implement is_file(), is_dir(), is_symlink() convenience methods - Add derives: Debug, Clone (FR-5.3.6) - Implement From<std::fs::Metadata> conversion - Add Metadata to public re-exports - Add comprehensive unit tests (28 tests) - All clippy, fmt, and doc checks pass Closes: workspace-node-tools-3q8.2
Implement the DirEntry struct as the third component of the types module: - Add DirEntry struct with path and file_type fields - Implement new(), path(), file_name(), file_type() methods (FR-5.1.1-FR-5.1.3) - Add derives: Debug, Clone (FR-5.1.4) - Handle edge cases: empty paths, root paths, parent directory (..) - Add DirEntry to public re-exports - Add comprehensive unit tests (25 tests) - All clippy, fmt, and doc checks pass Closes: workspace-node-tools-3q8.3
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
No description provided.