Search:

Type: Posts; User: dalythe

Search: Search took 0.09 seconds.

  1. Re: Creating a new directory using new File().mkdir()

    Yes this was answered in my crosspost. I needed to use mkdirs() instead of mkdir() to actually create the missing directories. Thanks for the help.
  2. Re: Creating a new directory using new File().mkdir()

    It refers to the home directory. I did a JOptionPane.showMessageDialog(null, path) and it indeed show me the correct path. It just don't create the path. new File(path).mkdir() actually returns false...
  3. Re: Creating a new directory using new File().mkdir()

    What I did check is that the string that I supplied to the new File().mkdir() is indeed the directory I needed to create. I don't quite understand checking the return value of mkdir().
  4. Re: Creating a new directory using new File().mkdir()

    Well my destpath is made up of the user's home directory and the Test name.


    String dtpath = new JFileChooser().getFileSystemView().getDefaultDirectory().toString();
    String destpath = dtpath +...
  5. Creating a new directory using new File().mkdir()

    I am trying to simply create a directory, but my code just will not accomplish it. It doesn't give me any errors but it doesn't create the directory neither. I thought that new File(path).mkdir();...
Results 1 to 5 of 5