prepare source and destination directory path
patterns to array function