Skip to content

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
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.

2 participants