1

How can I ensure that intermidiate components exist? Something like mkdir -p {} but without last component?

4

1 回答 1

1

假设你的路径是$f

赶紧跑mkdir -p `dirname $f`

于 2017-04-16T16:48:52.063 回答