Added support for dropping directories and files