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

File should allow us to set permissions

    Details

    • Type: Enhancement
    • Status: Closed
    • Priority: P4
    • Resolution: Duplicate
    • Affects Version/s: 1.1.6
    • Fix Version/s: None
    • Component/s: core-libs
    • Labels:
    • Subcomponent:
    • CPU:
      sparc
    • OS:
      solaris_2.6

      Description



      Name: dbT83986 Date: 01/29/99


      File newDir = new File("/tmp/x");
      if ( ! newDir.exists() ) newDir.mkdir();

      I would like to do something like the following:
      if ( ! newDir.exists() ) newDir.mkdir("777");

      or
      newDir.setMode("777"), newDir.setPermissions("777"), etc.
      (Review ID: 36822)
      ======================================================================

        Attachments

          Issue Links

            Activity

              People

              • Assignee:
                mr Mark Reinhold
                Reporter:
                dblairsunw Dave Blair (Inactive)
              • Votes:
                0 Vote for this issue
                Watchers:
                0 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved:
                  Imported:
                  Indexed: