Re: How to determine if a folder exists on a system?
Re: How to determine if a folder exists on a system?
- Subject: Re: How to determine if a folder exists on a system?
- From: "Mark J. Reed" <email@hidden>
- Date: Wed, 8 Jul 2009 16:37:36 -0400
On Wed, Jul 8, 2009 at 4:34 PM, Emmanuel LEVY<email@hidden> wrote:
> I trust that the bug never hit you, but you can trust me too:
I don't doubt you! Just hadn't heard of this before.
> Now you certainly see my point: since you don't want to feed mkdir with a
> path which would include a symlink, you really to have mkdir's recursive job
> by yourself: since you have to figure out the resolved path, you have to
> figure out what level the hierarchy already exists up to.
Right, but the straightforward way of doing that doesn't change the
behavior from mkdir -p, since [ -d ] returns true for symlinks. You
would have to do [ -d "$d" ] && [ ! -L "$d" ] or something to avoid
the symlink problem...
--
Mark J. Reed <email@hidden>
_______________________________________________
Do not post admin requests to the list. They will be ignored.
AppleScript-Users mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
Archives: http://lists.apple.com/archives/applescript-users
This email sent to email@hidden