Scripts traversing through directories looking for specific set of files and folders
问题 I'm trying to create a script that will traverse through all folders and subfolders of rootDir looking for specific set of folders and files. If script will find the folder (for ex. testfolder1 ) in which there are: textfile.txt image.jpg (optionally) subtitles.dxfp another folder (ex. testsubfolder1 ) containing video.mp4 file (optionally) another folder (ex. testsubfolder2 ) containing video_trailer.mp4 file it will create archive containing textfile.txt , image.jpg , subtitles.dxfp (if