Skip to content

Commit

Permalink
version 0.6.9
Browse files Browse the repository at this point in the history
- do not apply max_size condition to symlinks
  • Loading branch information
elesiuta committed Mar 17, 2022
1 parent 0f0a7e9 commit 52477fa
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions baka.py
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@
import sys
import time

VERSION = "0.6.8"
VERSION = "0.6.9"


def init_parser() -> argparse.ArgumentParser:
Expand Down Expand Up @@ -188,7 +188,7 @@ def copy_conditional_paths(config: "Config") -> None:
del dirs
break
try:
if conditions["max_size"] and os.stat(file_path).st_size > conditions["max_size"]:
if conditions["max_size"] and not os.path.islink(file_path) and os.stat(file_path).st_size > conditions["max_size"]:
continue
with open(file_path, "r", encoding="utf-8") as f:
_ = f.read(1)
Expand Down

0 comments on commit 52477fa

Please sign in to comment.