A customer wanted to know how they could find out the
directory that the user dropped a file onto.
As we already noted,
users can drop files onto things other than directories,
so the question itself comes with incorrect hidden assumptions.
This is another one of those cases where you have to ask the
customer, "What are you really trying to ...