Copy folder structure (without files) from one location to another
Here is a simple solution using rsync:
rsync -av -f"+ */" -f"- *" "$source" "$target"
- one line
- no problems with spaces
- preserve permissions
Here is a simple solution using rsync:
rsync -av -f"+ */" -f"- *" "$source" "$target"