-
-
Notifications
You must be signed in to change notification settings - Fork 8.2k
tpl: modify file system in os functions #13189
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
base: master
Are you sure you want to change the base?
tpl: modify file system in os functions #13189
Conversation
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
|
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. |
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.