title: how to check if the given local path is accessible for write in java
body: <p>I want to check below</p>
  
  <p>A) Path type: local:C:\program files\cts\ABCD_PP\dd\</p>
  
  <p>1) check if the path exists
  2) if path exists then check if the path is writable(means should be able to place a file on that path).</p>
  
  <p>also </p>
  
  <p>B) shared path:\\mdyptcmedia101\transmit\in\</p>
  
  <p>will it be same procedure as local file path verificaion or different</p>
  
  <p>using Jdk 1.6 in spring  project.</p>
  
  <p>Please help.</p>