Uploaded image for project: 'Hadoop Common'
  1. Hadoop Common
  2. HADOOP-2567

add FileSystem#getHomeDirectory() method

    XMLWordPrintableJSON

    Details

    • Type: New Feature
    • Status: Closed
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: 0.16.0
    • Component/s: fs
    • Labels:
      None

      Description

      The FileSystem API would benefit from a getHomeDirectory() method.

      The default implementation would return "/user/$USER/".

      RawLocalFileSystem would return System.getProperty("user.home").

      HADOOP-2514 can use this to implement per-user trash.

        Attachments

        1. 2567-3.patch
          5 kB
          Christopher Douglas
        2. HADOOP-2567.patch
          3 kB
          Doug Cutting
        3. HADOOP-2567-1.patch
          4 kB
          Doug Cutting
        4. HADOOP-2567-2.patch
          4 kB
          Doug Cutting
        5. HADOOP-2567-sortvalidate.patch
          0.8 kB
          Doug Cutting
        6. HADOOP-2567-tests.patch
          1 kB
          Doug Cutting

          Issue Links

            Activity

              People

              • Assignee:
                cutting Doug Cutting
                Reporter:
                cutting Doug Cutting
              • Votes:
                0 Vote for this issue
                Watchers:
                1 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: