Skip to content

자동 변환 폴더: 하위 폴더 구조를 변환 결과에도 유지 - #73

Merged
KnifeLemon merged 1 commit into
KnifeLemon:mainfrom
SeoJCalive:feature/watch-keep-subfolders
Oct 15, 2026
Merged

KnifeLemon merged 1 commit into
KnifeLemon:mainfrom
SeoJCalive:feature/watch-keep-subfolders

Conversation

@SeoJCalive

Copy link
Copy Markdown
Collaborator

무엇이 바뀌나요?

자동 변환 폴더에서 "하위 폴더 포함"을 켜면 변환된 파일이 모두 출력 폴더 한 곳에 섞여 들어가던 것을, 원래 하위 폴더 구조대로 저장하도록 바꿨습니다. Fixes #72

원본 이전 변경 후
Inbox\2024\a.png converted\a.pdf converted\2024\a.pdf
Inbox\2025\a.png converted\a (2).pdf converted\2025\a.pdf
Inbox\top.png converted\top.pdf converted\top.pdf (그대로)

"변환한 원본을 originals로 옮기기"가 원본을 옮길 때 이미 하위 폴더를 유지하고 있어서, 변환 결과도 같은 구조를 따르게 맞췄습니다.

  • OutputRule.KeepFoldersFrom: 지정 폴더로 저장할 때, 원본이 이 폴더 안에 있으면 그 하위 경로를 출력 폴더 아래에 유지합니다. 비어 있으면 이전과 같아서 일반 프리셋에는 영향이 없습니다.
  • WatchRule.Apply가 감시 폴더 경로를 넣고, filee watch(CLI)도 같게 동작합니다.
  • 원본이 감시 폴더 밖에 있으면(예: 옮겨진 파일을 다시 시도) 하위 폴더를 붙이지 않습니다.

지금은 감시 폴더에서 항상 적용되도록 했는데, 설정으로 켜고 끄는 편이 낫다면 체크박스를 추가하겠습니다.

어떻게 테스트했나요?

  • dotnet format --verify-no-changes
  • dotnet test (Core 159개, CLI 19개, 자동 변환 폴더 관련 UI 테스트 6개 통과. 하위 폴더 유지 / 이전처럼 동작해야 하는 경우 테스트 2개 추가)
  • 앱에서 직접 확인 (Windows): C:\FileeTest\Inbox를 PDF 자동 변환 폴더로 두고 "하위 폴더 포함"을 켠 뒤, 같은 이름의 a.png를 2024, 2025, 2025\scans에 넣었습니다. converted\2024\a.pdf, converted\2025\a.pdf, converted\2025\scans\a.pdf로 나뉘어 저장되는 것을 확인했습니다.

스크린샷

image
  • 왼쪽 (PowerShell tree /f): 감시 폴더 C:\FileeTest\Inbox의 구조입니다. 2024, 2025, 2025\scans에 같은 이름의 a.png를 넣었고, converted 아래에 2024\a.pdf, 2025\a.pdf, 2025\scans\a.pdf로 원래 폴더 구조대로 저장됐습니다. 최상위의 top.png는 converted\top.pdf로 이전과 같습니다. 번호가 붙은 파일(a (2).pdf 등)은 생기지 않았습니다.
  • 오른쪽 (Filee 자동 변환 폴더 설정): PDF 프리셋, "하위 폴더 포함" 켜짐, 저장 위치는 기본값(converted)입니다. 최근 결과에 "4개 변환, 실패 없음"이 표시됩니다.
  • 2024\10^8Doggy_1.png는 감시를 시작하기 전에 있던 파일이라 변환되지 않았습니다. 원본을 "그대로 두기"로 설정했을 때의 기존 동작이고, 이번 변경과는 관계없습니다.

체크리스트

  • 새 UI 문구 없음 (CLI 도움말 한 줄만 수정)
  • 새 외부 코드나 바이너리 없음

With "Include subfolders", converted files all landed directly in the output
folder, so Inbox\2024\a.jpg and Inbox\2025\a.jpg became a.pdf and a (2).pdf.
They now go to <output>\2024\a.pdf and <output>\2025\a.pdf, the same layout
"move originals" already keeps for the sources (KnifeLemon#72).

- OutputRule.KeepFoldersFrom: with a custom folder, a source inside this
  folder keeps its subfolder below it; empty (presets) behaves as before
- WatchRule.Apply sets it to the watched folder; "filee watch" does too
- Sources outside the root (e.g. a retry of a moved file) get no subfolder

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@KnifeLemon
KnifeLemon merged commit 3c287dd into KnifeLemon:main Oct 15, 2026
5 checks passed
@KnifeLemon

Copy link
Copy Markdown
Owner

감사합니다!

@KnifeLemon KnifeLemon added the enhancement New feature or request label Oct 20, 2026
@KnifeLemon KnifeLemon self-assigned this Oct 20, 2026
@SeoJCalive
SeoJCalive deleted the feature/watch-keep-subfolders branch October 23, 2026 04:29
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

enhancement New feature or request

Projects

None yet

Development

Successfully merging this pull request may close these issues.

자동변환시 폴더별 유지 기능 추가요청드려요

2 participants