in reply to RE: RE: Don't Check for Directories
in thread Checking for Directories

The improvement is to use mkdir -p. This will create the directory, including parents, but give no error if it exists already. I use this in some scripts a lot. It works. It's even mentioned in the man page.

-- Kirby

Tuxtops: Laptops with Linux!

  • Comment on RE: RE: RE: Don't Check for Directories

Replies are listed 'Best First'.
RE: RE: RE: RE: Don't Check for Directories
by takshaka (Friar) on Jul 29, 2000 at 09:05 UTC
    And what happens when you try this on, say, win32?