Uploaded image for project: 'IronJacamar'
  1. IronJacamar
  2. JBJCA-1438

Use java.nio.file.Files for deletion and directory creation

    XMLWordPrintable

Details

    Description

      Replace classic io with nio delete/createDirectory operations. NIO provides much better reason details in IOExceptions.

      if (!f.delete())
         throw new IOException("Could not delete " + f);
      

      becomes

      Files.delete(f.toPath());
      

      Attachments

        Activity

          People

            tadamski@redhat.com Tomasz Adamski
            xf01213 Boris Unckel (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: