-
-
Notifications
You must be signed in to change notification settings - Fork 7.4k
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
readDir
not guardable (can fail even when fileExists
succeeds)
#11917
Comments
Trying to use this in https://github.com/cmahnke/hugo-test/blob/main/layouts/partials/dir-check.html#L5
Doesn't help either. |
The problem seems to be introduced in The are two variables with filesystem references Since not even |
What version of Hugo are you using (
hugo version
)?Does this issue reproduce with the latest release?
Yes
Description
fileExists
andos.Stat
report a file as existing butreadDir
fails, maybe the virtual filesystem doesn't apply toreadDir
?I haven't test with mounts, but my expectation that either none should work or all.
See https://github.com/cmahnke/hugo-test
The template is in
layouts/partials/dir-check.html
The text was updated successfully, but these errors were encountered: