partida partida - 1 year ago 83
Perl Question

What's the meaning of `unless -d`?

Reading the code,I find this:
enter image description here

So what's the meaning of the option


djd djd
Answer Source

-d means that the file exists and is a directory.

So the snippet unless -d is used here to create the directory if it doesn't already exist.

Recommended from our users: Dynamic Network Monitoring from WhatsUp Gold from IPSwitch. Free Download