What is the rafts folder?

Hi, I just noticed a /rafts folder in my directory structure (at the same level as /content, /public, etc.).

The content of /rafts seems identical to that of /public, but the dates (and the size of some files) are different.

I couldn’t find any info in Hugo’s documentation or on Google.

Does anyone know what this folder is?

It is not created by Hugo.

I’m running into the same thing and it does appear to be created by Hugo. If I run command, hugo serve -drafts --disableFastRender - it creates a rafts folder and fills it with the built site.

I see that -drafts is not a valid option and I’m not sure where I saw that in order for it to appear in my zsh history.

It looks like Hugo is interpreting it as option -d which is “destination” and it’s accepting rafts as the destination to build into.

Type hugo help in your terminal and look at the flag syntax very carefully.

Are you asking how to serve your drafts?

hugo serve -D

Or are you asking why a CLI parameter – that you identified as the one taking the destination where Hugo should serve its files to – is working exactly as expected? CLI parameters don’t need spaces.

If a CLI parameter has one dash it is followed by one single letter (uppercase or lowercase) followed by the value if it accepts one. Having a space there is only to look good and be readable. If a CLI parameter has two dashes it is a “word” and needs a space after it.

I was not asking how to serve my drafts… Neither of those lol.

I was sharing that the same happened to me, and hugo was doing this, but due to misuse of a cli flag, for the benefit of future people who make the same mistake.

Is everyone in this community this aggressive? I created an account just to help solve a user-caused (but confusing to that user) edge case that I know has popped up at least twice.