I create folders in the environment with a relative path:

String pathDest = "Projects/AllJava"; File dir=new File(pathDest); dir.mkdirs(); 

it's okay But if I use the full path:

 String pathDest = "С:/Aux/All"; File dir=new File(pathDest); dir.mkdirs(); 

folders are not created anywhere. Interestingly, if I use a verification block

 if(!dir.exists()){ dir.mkdirs(); System.out.println("Directory created."); } 

the code is included in the block and a corresponding message is issued to the console, and folders are not created ?! Help me please!

  • unless after a disk not two // ? - michael_best 7:16 pm
  • and the admin user rights for the current user? - keekkenen pm
  • He pointed out the ways in different ways: "C: // Aux / All" and "C: \\ Aux \ All" - no result! And Yes, I am the administrator - I checked ... - Mikhail Vishnevetsky

0