Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

refactor(fs): use isSamePath() in isSubdir() #5053

Closed
wants to merge 1 commit into from

Conversation

iuioiua
Copy link
Contributor

@iuioiua iuioiua commented Jun 16, 2024

This is a more robust means of checking whether the source directory is the same as the destination directory.

@iuioiua iuioiua requested a review from kt3k as a code owner June 16, 2024 21:07
@github-actions github-actions bot added the fs label Jun 16, 2024
Copy link

codecov bot commented Jun 16, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 92.17%. Comparing base (d35f8a3) to head (16d6ebc).

Additional details and impacted files
@@           Coverage Diff           @@
##             main    #5053   +/-   ##
=======================================
  Coverage   92.17%   92.17%           
=======================================
  Files         487      487           
  Lines       38800    38801    +1     
  Branches     5435     5435           
=======================================
+ Hits        35764    35765    +1     
  Misses       2981     2981           
  Partials       55       55           

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

@kt3k
Copy link
Member

kt3k commented Jun 17, 2024

This is a more robust means of checking whether the source directory is the same as the destination directory.

Can you add test cases that this change fixes?

fs/_is_subdir.ts Show resolved Hide resolved
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants