jlesage / docker-handbrake

Docker container for HandBrake
MIT License
846 stars 97 forks source link

Empty folders being deleted from Watch folder #176

Open msalem23 opened 3 years ago

msalem23 commented 3 years ago

Hello,

My Watch folder is set to C:\VideosToBeConverted. I have AUTOMATED_CONVERSION_OUTPUT_SUBDIR set to SAME_AS_SRC. And my output folder is set to M:. I have a subfolder in C:\VideosToBeConvertrd called TVShows - that folder has several subdirectories of its own. However, when I try to add 2 additional subfolders to my Watch folder (Named "Movies" and "OtherVideos"), the folders are deleted because the Docker image detects that the folders are empty (or, the subfolders will stay put for a while, then they'll eventually get deleted after a video conversion takes place from inside of them). But I don't want the subfolders to be automatically deleted - I need them to stick around because I have a different application configured to automatically send video files to those directories.

Is there any way to prevent the docker image from automatically deleting empty subfolders contained within the Watch folder?

Thank you.

jlesage commented 3 years ago

Maybe you could configure the container to use multiple watch folders instead ? One for C:\VideosToBeConverted/Movies, one for C:\VideosToBeConverted/TVShows, etc.

scriptchecker commented 3 years ago

Does the docker support the "chattr -i" command? If so - that would certainly work!!