René's URL Explorer Experiment


Title: `dir1/file.txt' must be only a file name · Issue #104 · python/importlib_resources · GitHub

Open Graph Title: `dir1/file.txt' must be only a file name · Issue #104 · python/importlib_resources

X Title: `dir1/file.txt' must be only a file name · Issue #104 · python/importlib_resources

Description: Backport of the importlib.resources module. Contribute to python/importlib_resources development by creating an account on GitHub.

Open Graph Description: Backport of the importlib.resources module. Contribute to python/importlib_resources development by creating an account on GitHub.

X Description: Backport of the importlib.resources module. Contribute to python/importlib_resources development by creating an account on GitHub.

Opengraph URL: https://github.com/python/importlib_resources

X: @github

direct link

Domain: github.com


Hey, it has json ld scripts:
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"`dir1/file.txt' must be only a file name","articleBody":"In GitLab by @omry3 on Jun 24, 2020, 22:59\n\n\nFrom https://importlib-resources.readthedocs.io/en/latest/:\n\"In our terminology, a resource is a file tree that is located within an importable Python package.\"\n\nBecause this is talking about a file tree, I would expect to be able to check for resources in sub directories inside the importable Python package.\nThis does not seem to be the case.\nThe example below has two issues I am wondering about:\n1. How do I check if a directory exists?\n2. Why the error `dir1/file.txt' must be only a file name`? it seems that this should be supported based on the project terminology.\n\nSource tree: [test-importlib.zip](/uploads/85bd6dd8df9e755c800ed0598d48091d/test-importlib.zip)\n\nStructure:\n```\n$ tree\n.\n├── package\n│   ├── dir1\n│   │   └── file.txt\n│   ├── file.txt\n│   └── __init__.py\n└── test.py\n```\n\nOutput:\n```\n$ python test.py \nis_resource(\"package\", \"file.txt\") True\nis_resource(\"package\", \"dir1\") False , how do I check if a directory exists?\nis_resource(\"package\", \"dir1/file.txt\") failed with dir1/file.txt' must be only a file name'\nis_resource(\"package.dir1\", \"file.txt\") False need an __init__.py in dir1\n```\n\nThanks.","author":{"url":"https://github.com/jaraco","@type":"Person","name":"jaraco"},"datePublished":"2020-10-21T22:19:08Z","url":"https://github.com/python/importlib_resources/issues/104"}

react-profiling0
react-import-mapreact,react-dom,react-dom/client,react-dom/profiling,react-is,react/compiler-runtime,react/jsx-dev-runtime,react/jsx-runtime,scheduler@b8488ee2c322
route-pattern/:user_id/:repository/issues/:id(.:format)
route-controllerissues
route-actionshow
fetch-noncev2:7e374e66-7e6f-3b99-9fd7-d527a527078e
current-catalog-service-hash81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114
request-id9784:13710D:269CDE:3458B2:6B0068B9
html-safe-nonce97a5cead2a473f08fc4cfb89544c44db6d6b56c8bca077d6eabfe2d3423ba83a
visitor-payloadeyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiI5Nzg0OjEzNzEwRDoyNjlDREU6MzQ1OEIyOjZCMDA2OEI5IiwidmlzaXRvcl9pZCI6IjM1MTQ3MjUyMzM2NTMyMTMzNjkiLCJyZWdpb25fZWRnZSI6ImlhZCIsInJlZ2lvbl9yZW5kZXIiOiJpYWQifQ==
visitor-hmac31d0080a18a1ccf4ca3e74f9c0e232176c194b0048b8b41c18f052852328abab
hovercard-subject-tagrepository:306147182
github-keyboard-shortcutsrepository,issues,copilot
google-site-verificationApib7-x98H0j5cPqHWwSMm6dNU4GmODRoqxLiDzdx9I
octolytics-urlhttps://collector.github.com/github/collect
analytics-location///issues/show
fb:app_id1401488693436528
apple-itunes-appapp-id=1477376905, app-argument=https://github.com/python/importlib_resources/issues/104
twitter:imagehttps://opengraph.githubassets.com/c57f91aa6d857c62fabc90dfbc11706fc52d4dbfcb573e80635009d7c11428e6/python/importlib_resources
twitter:cardsummary_large_image
og:imagehttps://opengraph.githubassets.com/c57f91aa6d857c62fabc90dfbc11706fc52d4dbfcb573e80635009d7c11428e6/python/importlib_resources
og:image:altBackport of the importlib.resources module. Contribute to python/importlib_resources development by creating an account on GitHub.
og:image:width1200
og:image:height600
og:site_nameGitHub
og:typeobject
hostnamegithub.com
expected-hostnamegithub.com
None6527e91c60c0b29d16606ff32ac5df8ecdc37a2a62205ea057a14d7762c870fa
turbo-cache-controlno-cache
go-importgithub.com/python/importlib_resources git https://github.com/python/importlib_resources.git
octolytics-dimension-user_id1525981
octolytics-dimension-user_loginpython
octolytics-dimension-repository_id306147182
octolytics-dimension-repository_nwopython/importlib_resources
octolytics-dimension-repository_publictrue
octolytics-dimension-repository_is_forkfalse
octolytics-dimension-repository_network_root_id306147182
octolytics-dimension-repository_network_root_nwopython/importlib_resources
turbo-body-classeslogged-out env-production page-responsive
disable-turbofalse
browser-stats-urlhttps://api.github.com/_private/browser/stats
browser-errors-urlhttps://api.github.com/_private/browser/errors
release46f1cd2ae3cd8ae1a81019b5d619742e76f13bbd
ui-targetfull
theme-color#1e2327
color-schemelight dark
react-app-nameissues

Links:

Skip to contenthttps://github.com/python/importlib_resources/issues/104#start-of-content
https://github.com/
Sign inhttps://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Fpython%2Fimportlib_resources%2Fissues%2F104
GitHubRepository hosting, code review, and collaborationhttps://github.com/platform
CopilotAI coding agent for tasks, projects, and automated workhttps://github.com/features/copilot
ActionsCI/CD and automationhttps://github.com/features/actions
Code QualityQuality analysis, fixes, and enforcementhttps://github.com/features/code-quality
CodespacesCloud development environmentshttps://github.com/features/codespaces
Code SecurityVulnerability detection and remediationhttps://github.com/security/advanced-security/code-security
Secret ProtectionSecret scanning and leak preventionhttps://github.com/security/advanced-security/secret-protection
All Featureshttps://github.com/features
Documentationhttps://docs.github.com/en
Traininghttps://learn.github.com/skills
Certificationshttps://learn.github.com/credentials
Build with Copilothttps://github.com/features/ai
Customize Copilothttps://docs.github.com/en/copilot/how-tos/copilot-on-github/customize-copilot/customize-copilot-overview
Integrationshttps://github.com/marketplace
Trending reposhttps://github.com/trending
GitHub Sponsorshttps://github.com/open-source/sponsors
Developer articleshttps://github.com/resources/articles
ChangelogYour source for the latest features, improvements, and fixes across GitHub products, all in one place.https://github.blog/changelog/
Enterpriseshttps://github.com/enterprise
Teamhttps://github.com/team
Startupshttps://github.com/enterprise/startups
Nonprofitshttps://github.com/solutions/industry/nonprofits
Healthcarehttps://github.com/solutions/industry/healthcare
Financial serviceshttps://github.com/solutions/industry/financial-services
Manufacturinghttps://github.com/solutions/industry/manufacturing
Governmenthttps://github.com/solutions/industry/government
See all industrieshttps://github.com/solutions/industry
Why GitHubhttps://github.com/why-github
Customer Storieshttps://github.com/customer-stories
Business insightshttps://github.com/solutions/executive-insights
Trust Centerhttps://github.com/trust-center
GitHub Advanced SecurityEnterprise-grade code securityhttps://github.com/security/advanced-security
Copilot for businessEnterprise-grade AI featureshttps://github.com/features/copilot/copilot-business
Premium SupportEnterprise-grade 24/7 supporthttps://github.com/enterprise/premium-support
Documentationhttps://docs.github.com/en
Resource centerhttps://github.com/resources
Bloghttps://github.blog/
Events & webinarshttps://github.com/resources/events
Community Forumhttps://github.com/orgs/community/discussions
Customer Storieshttps://github.com/customer-stories
Integrationshttps://github.com/marketplace
Customer supporthttps://help.github.com/
Traininghttps://learn.github.com/skills
GitHub Statushttps://www.githubstatus.com/
Abouthttps://github.com/about
Partnershttps://github.com/partners
Changeloghttps://github.blog/changelog/
GitHub UniverseThe event for developers, by developers — talks, workshops, and what’s next for GitHub.https://githubuniverse.com/
Pricinghttps://github.com/pricing
Sign inhttps://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Fpython%2Fimportlib_resources%2Fissues%2F104
Sign uphttps://github.com/signup?ref_cta=Sign+up&ref_loc=header+logged+out&ref_page=%2F%3Cuser-name%3E%2F%3Crepo-name%3E%2Fissues%2Fshow&source=header-repo&source_repo=python%2Fimportlib_resources
Reloadhttps://github.com/python/importlib_resources/issues/104
Reloadhttps://github.com/python/importlib_resources/issues/104
Reloadhttps://github.com/python/importlib_resources/issues/104
https://github.com/python/importlib_resources
New issuehttps://github.com/login?return_to=https://github.com/python/importlib_resources/issues/104
New issuehttps://github.com/login?return_to=https://github.com/python/importlib_resources/issues/104
`dir1/file.txt' must be only a file namehttps://github.com/python/importlib_resources/issues/104#top
https://github.com/jaraco
jaracohttps://github.com/jaraco
on Oct 21, 2020https://github.com/python/importlib_resources/issues/104#issue-726902317
https://importlib-resources.readthedocs.io/en/latest/https://importlib-resources.readthedocs.io/en/latest/
test-importlib.ziphttps://github.com/uploads/85bd6dd8df9e755c800ed0598d48091d/test-importlib.zip
https://github.com/jaraco
jaracohttps://github.com/jaraco
on Oct 21, 2020https://github.com/python/importlib_resources/issues/104#issuecomment-713909527
@brettcannonhttps://github.com/brettcannon
#58https://github.com/python/importlib_resources/issues/58
https://github.com/jaraco
jaracohttps://github.com/jaraco
on Oct 21, 2020https://github.com/python/importlib_resources/issues/104#issuecomment-713909548
@brettcannonhttps://github.com/brettcannon
#58https://github.com/python/importlib_resources/issues/58
https://github.com/jaraco
jaracohttps://github.com/jaraco
on Oct 21, 2020https://github.com/python/importlib_resources/issues/104#issuecomment-713909561
@brettcannonhttps://github.com/brettcannon
jaracohttps://github.com/jaraco
completedhttps://github.com/python/importlib_resources/issues?q=is%3Aissue%20state%3Aclosed%20archived%3Afalse%20reason%3Acompleted
on Oct 21, 2020https://github.com/python/importlib_resources/issues/104#event-3906188093
Sign up for freehttps://github.com/signup?return_to=https://github.com/python/importlib_resources/issues/104
Sign in to commenthttps://github.com/login?return_to=https://github.com/python/importlib_resources/issues/104
https://github.com
Termshttps://docs.github.com/site-policy/github-terms/github-terms-of-service
Privacyhttps://docs.github.com/site-policy/privacy-policies/github-privacy-statement
Securityhttps://github.com/security
Statushttps://www.githubstatus.com/
Communityhttps://github.community/
Docshttps://docs.github.com/
Contacthttps://support.github.com?tags=dotcom-footer

Viewport: width=device-width


URLs of crawlers that visited me.