list directory contents if is directory