Return-Path: X-Original-To: apmail-hadoop-user-archive@minotaur.apache.org Delivered-To: apmail-hadoop-user-archive@minotaur.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id AB555D3DF for ; Wed, 5 Sep 2012 11:21:09 +0000 (UTC) Received: (qmail 52258 invoked by uid 500); 5 Sep 2012 11:21:05 -0000 Delivered-To: apmail-hadoop-user-archive@hadoop.apache.org Received: (qmail 52047 invoked by uid 500); 5 Sep 2012 11:21:04 -0000 Mailing-List: contact user-help@hadoop.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: user@hadoop.apache.org Delivered-To: mailing list user@hadoop.apache.org Received: (qmail 52024 invoked by uid 99); 5 Sep 2012 11:21:04 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 05 Sep 2012 11:21:04 +0000 X-ASF-Spam-Status: No, hits=-0.5 required=5.0 tests=FREEMAIL_ENVFROM_END_DIGIT,FSL_RCVD_USER,RCVD_IN_DNSWL_LOW,SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (nike.apache.org: domain of nitinpawar432@gmail.com designates 209.85.217.176 as permitted sender) Received: from [209.85.217.176] (HELO mail-lb0-f176.google.com) (209.85.217.176) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 05 Sep 2012 11:20:56 +0000 Received: by lboi15 with SMTP id i15so324459lbo.35 for ; Wed, 05 Sep 2012 04:20:36 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :content-type; bh=ZK8v8PG81JmZiTg2ZCZ0dRGlPSv7iuvc5GeBEAqy9kY=; b=Bh+b5gyiNglvd+Eh0uhD9CPy+7YsxXRnCYSjfisVS+aa6ZIWuK6prjt8GQXL2QZP6c X5ck+g0u4g/DeQvTRCzMX3N3MghajeEDJL4t+OIGe8vVzkmUUcFU1K124JEnVzHi2wjw Ijrh0HnUhvmEBkyetzXtYfqprQ4w2hrdRVRByzFafc7snbxUzEKPrDFiz1O8ORP4SHYP 8335yDc4yrjCX6muRNe4DFjtJwfu2pn6CXd9iQjw9KF00o2xphBM8q92cI5sOeiR4L2H EmuU/2fd0lN5GcMDh8HDtn4nxxjR5qJNLY9B2UZZfqPVG6keJNUgYU/RaWqP/KGQkBWw sasw== MIME-Version: 1.0 Received: by 10.152.112.138 with SMTP id iq10mr19947855lab.13.1346844036266; Wed, 05 Sep 2012 04:20:36 -0700 (PDT) Received: by 10.112.18.45 with HTTP; Wed, 5 Sep 2012 04:20:36 -0700 (PDT) In-Reply-To: References: Date: Wed, 5 Sep 2012 16:50:36 +0530 Message-ID: Subject: Re: directory delete in hadoop From: Nitin Pawar To: user@hadoop.apache.org Content-Type: text/plain; charset=ISO-8859-1 yes this will delete the entire directory and its contents (assuming that user running the code has the permission to delete the directory) On Wed, Sep 5, 2012 at 4:44 PM, nisha sharma wrote: > Hi, > > I m usin the below method to delete a directory named testingfolder, will > this method delete all my jpeg files inside this directory will these files > also get deleted from hdfs along with the directory > > fileSystem.delete( > new Path("/user/testingfolder"),true); -- Nitin Pawar