won't list directory when given a file