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

docs: 📝 update example in create_resource_structure() #1121

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

lwjohnst86
Copy link
Member

Description

Updated the example code to run in the create_resource_structure() function.

This PR needs a quick review.

Checklist

  • Updated documentation
  • Ran just run-all

@lwjohnst86 lwjohnst86 requested a review from a team as a code owner March 6, 2025 19:49
Copy link
Contributor

@martonvago martonvago left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Nice!! 😄

Comment on lines +50 to +53
resource_path = Path(temp_path / "resources")
resource_path.mkdir()
# Create a resource structure
sp.create_resource_structure(path=resource_path)
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
resource_path = Path(temp_path / "resources")
resource_path.mkdir()
# Create a resource structure
sp.create_resource_structure(path=resource_path)
resources_path = Path(temp_path / "resources")
resources_path.mkdir()
# Create a resource structure
sp.create_resource_structure(path=resources_path)

To avoid confusion between the path to the "resources" folder and the path to a resource

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
Status: In Progress
Development

Successfully merging this pull request may close these issues.

2 participants