×

Good News Everybody!

The new search engine is LIVE!

Please report any problems to david (at) midrange.com.




Submitting again for the sake of clarity in archives. Sorry that after
switching to a new laptop, I didn't have my reply options set properly.

What's the best way to create a directory tree on the IFS when only
some, but perhaps all, of the directory entries exist?

Suppose that the final directory & file will look something like:

/home/PDF/username/2010/03/21/A Report.pdf

QSH CMD('mkdir -p /home/PDF/username/2010/03/21/')

This will create any directories it needs along the way, eventually
Ending with the 21 directory. It will also *not* error out if the
complete path already exists.

Dennis Lovelady
http://www.linkedin.com/in/dennislovelady
--
"He is so unlucky that he runs into accidents which started out to
happen to somebody else."
-- Don Marquis


As an Amazon Associate we earn from qualifying purchases.

This thread ...

Replies:

Follow On AppleNews
Return to Archive home page | Return to MIDRANGE.COM home page

This mailing list archive is Copyright 1997-2026 by midrange.com and David Gibbs as a compilation work. Use of the archive is restricted to research of a business or technical nature. Any other uses are prohibited. Full details are available on our policy page. If you have questions about this, please contact [javascript protected email address].

Operating expenses for this site are earned using the Amazon Associate program and Google Adsense.