Skip to content
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

Improve output folder cleanup #2

Open
Bios-Marcel opened this issue Nov 8, 2020 · 0 comments
Open

Improve output folder cleanup #2

Bios-Marcel opened this issue Nov 8, 2020 · 0 comments
Labels
author-ux New feature or request
Milestone

Comments

@Bios-Marcel
Copy link
Owner

Bios-Marcel commented Nov 8, 2020

Currently all files manually added to the output subfolders files will be deleted. Files manually placed directly in the output folder will be preserved.

To solve this, we need an index file. For example, if stasi generates the following folder structure:

|--articles
   |--article-1.html
|--favicon.ico
|--index.html

The generation index would look like this:

articles/article-1.html
index.html
favicon.ico

We'd then delete only the files, but not the folders and afterwards generate a new index.
The index should be deleted last, to avoid leaving behind garbage in case of failures.

@Bios-Marcel Bios-Marcel added the author-ux New feature or request label Feb 14, 2023
@Bios-Marcel Bios-Marcel added this to the v0.1 milestone Feb 14, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
author-ux New feature or request
Projects
None yet
Development

No branches or pull requests

1 participant