• 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: Instantly delete a directory without recursion?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Instantly delete a directory without recursion?


  • Subject: Re: Instantly delete a directory without recursion?
  • From: Oleg Krupnov <email@hidden>
  • Date: Mon, 4 Oct 2010 11:12:55 +0300

Let me make the question more clear: I am aware of functions like
[NSFileManager removeItemAtPath: error:], but what they do under the
hood is they iterate through the subdirectories and files and delete
them first. This takes some time. I am interested if it is possible to
do this instantly, without even implicit recursion. Just remove the
directory and the files and subdirectories would disappear?

Thanks!

On Mon, Oct 4, 2010 at 11:03 AM, Oleg Krupnov <email@hidden> wrote:
> Hi,
>
> Is there a way to delete a directory instantly and completely without
> first deleting all its subdirectories and files recursively?
>
> Thanks.
>
> Oleg.
>
_______________________________________________

Cocoa-dev mailing list (email@hidden)

Please do not post admin requests or moderator comments to the list.
Contact the moderators at cocoa-dev-admins(at)lists.apple.com

Help/Unsubscribe/Update your Subscription:

This email sent to email@hidden

  • Follow-Ups:
    • Re: Instantly delete a directory without recursion?
      • From: "Stephen J. Butler" <email@hidden>
    • Re: Instantly delete a directory without recursion?
      • From: Guillem Palou <email@hidden>
References: 
 >Instantly delete a directory without recursion? (From: Oleg Krupnov <email@hidden>)

  • Prev by Date: Instantly delete a directory without recursion?
  • Next by Date: Re: Instantly delete a directory without recursion?
  • Previous by thread: Instantly delete a directory without recursion?
  • Next by thread: Re: Instantly delete a directory without recursion?
  • Index(es):
    • Date
    • Thread