title: How to copy file to HDFS in case insensitive way
body: <p>I have to copy certain CSV files to HDFS of format
  <code>ABCDWXYZ.csv</code>viz. <code>PERSONDETAILS.csv</code> and I have to copy it to an HDFS directory of name <code>AbcdWxyz</code> viz PersonDetails. </p>
  
  <p>Now the problem is I don't have exact HDFS directory name, I get it from the CSV file after trimming it and fire put</p>
  
  <pre><code>Hadoop fs -put $localRootDir/$Dir/*.csv $HDFSRootDir/$Dir
  </code></pre>
  
  <p>but it throws an error as there is no such directory in HDFS with all uppercase letter.</p>
  
  <p>Now how can I copy the file to HDFS? Is there a way to make the Hadoop put command case insensitive using regex or natively.
  Or is there a way by which I can convert the String to required CamelCase</p>