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

Don't arbitrarily delete extra files in project folder, allow images in project folder #788

Open
wants to merge 2 commits into
base: develop
Choose a base branch
from

Conversation

ghost
Copy link

@ghost ghost commented Jul 22, 2020

Currently, the program deletes any files that it doesn't recognize in your project folder. Perhaps useful for deleting "orphan" files, but if you store things like custom pandoc YAML files and various peripheral files in that folder, then it seems rather destructive to always be arbitrarily deleting files like these.

@ghost ghost changed the title Don't arbitrarily delete extra files in project folder Don't arbitrarily delete extra files in project folder, allow images in project folder Jul 22, 2020
@@ -663,6 +655,9 @@ def loadProject(project, zip=None):
if f[-4:] in [".xml", "opml"]:
with open(os.path.join(dirpath, f), "rb") as fo:
files[os.path.join(p, f)] = fo.read()
elif f[-4:] in [".png", "jpeg",".jpg","bmp","tiff",".gif",".pdf"]:
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This should by configurable, I use often SVG images.

Also HTML Files often with research information or other filetypes. (bst -> bibtex and so on)

In the moment I store my Images in folder on the same level as the project-file (I do not us the zip/one-file mode!)... So I don't have this Problem.

@TheJackiMonster
Copy link
Collaborator

I think that's something to look into when making changes improving the storage system overall.

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

Successfully merging this pull request may close these issues.

None yet

2 participants