Skip to content

Commit

Permalink
🐛 修复获取不到子目录的content的问题
Browse files Browse the repository at this point in the history
  • Loading branch information
Blushyes committed Nov 13, 2024
1 parent 20f8139 commit 60fd798
Show file tree
Hide file tree
Showing 2 changed files with 17 additions and 1 deletion.
2 changes: 1 addition & 1 deletion src/file.py
Original file line number Diff line number Diff line change
Expand Up @@ -93,7 +93,7 @@ def file_generator():

file_info = FileInfo(
name=filename,
content=loads_file(relative_path, safely),
content=loads_file(full_path, safely),
abspath=full_path,
relpath=relative_path,
)
Expand Down
16 changes: 16 additions & 0 deletions te.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
from src.file import *

infos = (
FileProcessChain()
.path("..")
.exclude("node_modules")
.min_size("10m")
.use_yield()
.safe_collect()
)
cnt = 0
for info in infos:
print(info)
cnt += 1

print(cnt)

0 comments on commit 60fd798

Please sign in to comment.