DeL-TaiseiOzaki commited on
Commit
20c757d
1 Parent(s): 5a2169d
Files changed (1) hide show
  1. core/file_scanner.py +2 -0
core/file_scanner.py CHANGED
@@ -66,6 +66,8 @@ class FileScanner:
66
  if content is not None:
67
  files.append(FileInfo(
68
  path=entry.relative_to(self.base_dir),
 
 
69
  content=content
70
  ))
71
 
 
66
  if content is not None:
67
  files.append(FileInfo(
68
  path=entry.relative_to(self.base_dir),
69
+ size=entry.stat().st_size, # ファイルサイズを追加
70
+ extension=entry.suffix, # 拡張子を追加
71
  content=content
72
  ))
73