rstudio/shiny — pull request #488 by yihui (2014-05-19 06:24:45+00:00)
Title: fix #220: the first entry is not necessarily a directory

in that case, we use dirname() on the first entry

see also http://stackoverflow.com/questions/23691521/problems-with-runurl-in-shiny