droplet-sh: trying to "ls" a file returns weird error

We tried dpl_opendir() on the given path, possibly a file.

I added the -d option, which display attributes for the given entry, directory or regular file.