Uploaded image for project: 'JDK'
  1. JDK
  2. JDK-1228839

no way to remove a file or directory

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Closed
    • Priority: P2
    • Resolution: Fixed
    • Affects Version/s: 1.0
    • Fix Version/s: 1.0
    • Component/s: other-libs
    • Labels:
    • Subcomponent:
    • Resolved In Build:
      1.0fcs
    • CPU:
      generic, sparc
    • OS:
      solaris_2.4
    • Verification:
      Not verified

      Description

      There's a File.renameTo() method, but no File.remove() method.
      Truncating a file and/or renaming it to an obscure name is just
      about as good as removing it, but not quite. There seems to be
      no reason not to provide this function.

      There should probably be a rmdir function as well.

      The description field as copied from bug report 1222517 follows:

      There is no way to delete files.

        Attachments

          Issue Links

            Activity

              People

              Assignee:
              dbowensunw David Bowen (Inactive)
              Reporter:
              bshannon Bill Shannon (Inactive)
              Votes:
              0 Vote for this issue
              Watchers:
              0 Start watching this issue

                Dates

                Created:
                Updated:
                Resolved:
                Imported:
                Indexed: