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

hooks: more rhai fs functions #593

Merged
merged 4 commits into from
Nov 2, 2023
Merged

hooks: more rhai fs functions #593

merged 4 commits into from
Nov 2, 2023

Conversation

BrettMayson
Copy link
Owner

@BrettMayson BrettMayson commented Nov 2, 2023

  • .list() array of files in a directory
  • .file_name() returns the file / dir name
  • .parent() returns the parent of the path
  • HEMTT.project().mainprefix(), return main prefix or empty string if not set

Copy link

codecov bot commented Nov 2, 2023

Codecov Report

Merging #593 (882b6cd) into main (960f55b) will decrease coverage by 0.4%.
Report is 1 commits behind head on main.
The diff coverage is 40.9%.

Files Coverage Δ
bin/src/modules/hook/mod.rs 93.2% <100.0%> (ø)
bin/src/error.rs 0.0% <0.0%> (ø)
bin/src/modules/hook/libraries/project.rs 65.3% <57.1%> (-3.1%) ⬇️
bin/src/modules/hook/libraries/rfs/path.rs 76.1% <76.4%> (-0.8%) ⬇️
bin/src/modules/hook/libraries/vfs/path.rs 1.9% <0.0%> (-0.9%) ⬇️

... and 7 files with indirect coverage changes

@BrettMayson BrettMayson merged commit 0dc821e into main Nov 2, 2023
26 checks passed
@BrettMayson BrettMayson deleted the list_dir branch November 2, 2023 10:32
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant