• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: How to determine if a folder exists on a system?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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

  • Follow-Ups:
    • Re: How to determine if a folder exists on a system?
      • From: Philip Aker <email@hidden>
References: 
 >How to determine if a folder exists on a system? (From: "OSullivan, Steven" <email@hidden>)
 >Re: How to determine if a folder exists on a system? (From: "Mark J. Reed" <email@hidden>)
 >Re: How to determine if a folder exists on a system? (From: Emmanuel LEVY <email@hidden>)
 >Re: How to determine if a folder exists on a system? (From: "Mark J. Reed" <email@hidden>)
 >Re: How to determine if a folder exists on a system? (From: Emmanuel LEVY <email@hidden>)

  • Prev by Date: Re: How to determine if a folder exists on a system?
  • Next by Date: Re: How to determine if a folder exists on a system?
  • Previous by thread: Re: How to determine if a folder exists on a system?
  • Next by thread: Re: How to determine if a folder exists on a system?
  • Index(es):
    • Date
    • Thread