One liner. Add a slash to prevent dir being interpreted as a file.