algoo / preview-generator

generates previews of files with cache management
https://pypi.org/project/preview-generator/
MIT License
224 stars 49 forks source link

Misc: Consider using symlink or hardlink to replace the need for file_ext parameter. #260

Open inkhey opened 3 years ago

inkhey commented 3 years ago

Feature description and goals

Introduced here: https://github.com/algoo/preview-generator/issues/24 for tracim v2 support, the file_ext parameter permit to add extension separated from the filename. This is useful for filedepot file path as filedepot store file without extension.

This feature cause some issue as it create new case that also need to be tested.

To simplify things, it may be better to either:

This permit to simplify the process.

It's unclear if symlink can work as expected. Hardlink seems more reliable for this but have some drawback too (weird result in du tool for example).