mirror of
https://github.com/sigoden/dufs.git
synced 2026-04-08 16:49:02 +03:00
[PR #566] [CLOSED] Maximum archive size and --follow-symlinks flag
#642
Reference in New Issue
Block a user
Delete Branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
📋 Pull Request Information
Original PR: https://github.com/sigoden/dufs/pull/566
Author: @falko17
Created: 4/4/2025
Status: ❌ Closed
Base:
main← Head:dev📝 Commits (3)
e60d52afeat: add --follow-symlinks flag to follow links for search/archivingbaa8babfeat: allow configuring maximum archive size7474d79fix: incorrect directory size due to wrong variable being used📊 Changes
3 files changed (+81 additions, -18 deletions)
View changed files
📝
assets/index.js(+2 -2)📝
src/args.rs(+27 -0)📝
src/server.rs(+52 -16)📄 Description
This PR adds the following changes:
--follow-symlinksflag has been added. When set (falseby default), searching and archiving will follow symlinks (i.e., include targets in searches/ZIP files).--max-archive-sizeflag has been added with which a maximum byte size for archives can be set. The purpose of this is to prevent huge downloads, which could use up more resources than desired (bandwidth/CPU if compression is enabled).handle_zip_filesfunction a little to make it possible to display an error message to the user when the archive turns out too big.🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.