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

Delete til directory if it exists before copying HTML files to it #3

Closed
sdthaker opened this issue Sep 10, 2023 · 1 comment
Closed

Comments

@sdthaker
Copy link

sdthaker commented Sep 10, 2023

As far as I know, the instructions tell us to delete the existing til directory before copying contents into it. After running the tool and passing a text file, it successfully generated the HTML and put it into the til dir, but all the existing HTML files were still present in til directory. I believe this should be an easy fix. Check to find if the til directory exists, if it does then remove it.

From the 0.1 Release Wiki Document:
image

@omalk98
Copy link
Owner

omalk98 commented Sep 10, 2023

The program is designed to overwrite files with the same input path instead of clearing the entire directory, this is done simple for ease of updating the HTML files as well as allowing for incremental addition of HTML files.

In case notes get sparse and numerous, this design should help keep all notes easily updated in a non destructive way.

It also improves performance as it does not require clearing the entire directory before adding new files, and will allows notes to be anywhere in file system instead of forcing them all to be in one place to be compiled each time a new note is added.

@omalk98 omalk98 closed this as completed Sep 10, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants