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

Add FileStatus#isDirectory and isFile

Log workAgile BoardRank to TopRank to BottomAttach filesAttach ScreenshotBulk Copy AttachmentsBulk Move AttachmentsVotersWatch issueWatchersCreate sub-taskConvert to sub-taskMoveLinkCloneLabelsUpdate Comment AuthorReplace String in CommentUpdate Comment VisibilityDelete Comments
    XMLWordPrintableJSON

Details

    • Improvement
    • Status: Closed
    • Blocker
    • Resolution: Fixed
    • 0.21.0, 0.22.0
    • 0.21.0
    • fs
    • None
    • Reviewed

    Description

      Per Sanjay's suggestion in HADOOP-6421 let's deprecate FileStatus#isDir() and add isDirectory() and isFile() to compliment isSymlink. Currently clients assume !isDir() implies a file, which is no longer true with symlinks. I'll file a separate jira to change the various uses of !isDir() to be isFile() or isFile() or isSymlink() as appropriate.

      Attachments

        1. hadoop-6585-5.patch
          44 kB
          Eli Collins
        2. hadoop-6585-4.patch
          44 kB
          Eli Collins
        3. hadoop-6585-3.patch
          45 kB
          Eli Collins
        4. hadoop-6585-2.patch
          45 kB
          Eli Collins
        5. hadoop-6585-1.patch
          35 kB
          Eli Collins

        Issue Links

        Activity

          This comment will be Viewable by All Users Viewable by All Users
          Cancel

          People

            eli Eli Collins Assign to me
            eli Eli Collins
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Slack

                Issue deployment