knadh / tg-archive

A tool for exporting Telegram group chats into static websites like mailing list archives.
MIT License
885 stars 134 forks source link

Symlinks instead of copy. #42

Closed 3h5t4tvz8etx1op2 closed 2 years ago

3h5t4tvz8etx1op2 commented 2 years ago

Hi!

From what I see the --build flag copy whole media folder:

https://github.com/knadh/tg-archive/blob/d28d7c53b8dc9f40378735f822aa532e49fe14ae/tgarchive/build.py#L177

How about switching to symlinks? They can safe half of the storage

knadh commented 2 years ago

Yep, makes sense. Will add this.