title: Creating folder in the local file system
body: <p>I'm having the following code in my mapper [ Hadoop - Map Reduce ]</p>
  
  <p>Im trying to create a folder in the  shared path </p>
  
  <pre><code>protected void setup(Context context)
          throws IOException,InterruptedException 
      {
  
          fileName1 = ((FileSplit) context.getInputSplit()).getPath().getName().toString();
          Directory = "\\\\DEV144\\MapperFile\\"+fileName1;
          File directory1 = new File(Directory);
          if (!directory1.exists())
          {
           boolean result = new File(Directory).mkdirs(); 
           System.out.println(Directory);
          if(result)
          {    
              System.out.println("DIR created"); 
              System.out.println(Directory);          
          }
          }   
          mos = new MultipleOutputs(context);
  </code></pre>
  
  <p>above code is  not creating the folder. But when i give something like this </p>
  
  <pre><code>Directory = "E:\\MapperFile\\"+fileName1;
  File directory1 = new File(Directory);
  </code></pre>
  
  <p>And point the local system it is creating Folder and working  fine </p>
  
  <p>My question is why it is not able to create folder in the shared path ? </p>
  
  <p>And what is wrong in my code </p>