[ 
https://issues.apache.org/jira/browse/HADOOP-5762?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12708191#action_12708191
 ] 

Tsz Wo (Nicholas), SZE commented on HADOOP-5762:
------------------------------------------------

{code}
+    return srcCount > 0;
{code}
Checking srcCount may not work well since srcCount counts all src paths.  It 
will be >0 even there is nothing to copy.

We probably need a new varible dirCount and then return fileCount > 0 || 
dirCount > 0.

> distcp does not copy empty directories
> --------------------------------------
>
>                 Key: HADOOP-5762
>                 URL: https://issues.apache.org/jira/browse/HADOOP-5762
>             Project: Hadoop Core
>          Issue Type: Bug
>          Components: tools/distcp
>            Reporter: dhruba borthakur
>            Assignee: Rodrigo Schmidt
>             Fix For: site
>
>         Attachments: HADOOP-5762.patch
>
>
> If I have an empty directory /testdir1 and then I run the command bin/hadoop 
> distcp /testdir1 /testdir2, the command completes successfully, but does not 
> create the empty directory /testdir2.

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.

Reply via email to