Skip to content

Conversation

@rymut
Copy link

@rymut rymut commented Dec 23, 2024

All os functions now operate under a common file system composed of workdir fs and overlay mount fs with fallback to contentDir for ReadFile, FileExists and Stat function.
This allows to access union file system without introducing new functions and resolves issue with Stat/ReadDir working on different filesystms.

Add the file system access the implementation of: Readdir for rootMappingDir and Size for dirNameOnlyFileInfo.

Fix implementation of collectDirEntries for RootMappingFs to handle root directory correctly.

Releated issues: #12321 #11917 #9604

Access to UFS can be done by partials https://github.com/rymut/hugo-turing/tree/4dea11eb15374325acff1c5203789ee51edec84a/hugo-turing-ufs - but it is cumbersome, so i tried to resolve the issue in hugo code without introducing new parameters or braking chanegs.

rymut added 21 commits December 15, 2024 21:32
All os functions now operate under a common file system composed of
workdir fs and overlay mount fs with fallback to contentDir for
ReadFile, FileExists and Stat function.
This allows to access union file system without introducing new
functions and resolves issue with Stat/ReadDir working on different
filesystms.

Add the file system access the implementation of: Readdir for
rootMappingDir and Size for dirNameOnlyFileInfo.

Fix implementation of collectDirEntries for RootMappingFs to handle
root directory correctly.

Fixes: gohugoio#12321 gohugoio#11917 gohugoio#9604
@CLAassistant
Copy link

CLAassistant commented Dec 23, 2024

CLA assistant check
All committers have signed the CLA.

@github-actions
Copy link

This PR has been automatically marked as stale because it has not had recent activity. The resources of the Hugo team are limited, and so we are asking for your help.
Please check https://github.com/gohugoio/hugo/blob/master/CONTRIBUTING.md#code-contribution and verify that this code contribution fits with the description. If yes, tell us in a comment.
This PR will automatically be closed in the near future if no further activity occurs. Thank you for all your contributions.

@github-actions github-actions bot added the Stale label Dec 26, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

2 participants