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

(fs) Files.probeContentType returns null on Mac OS X

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Fixed
    • Icon: P4 P4
    • 9
    • 9
    • core-libs
    • b72
    • os_x
    • Verified

        The content type probe mechanism depends on the existence of user.home/.mime.types which does not in general exist on Mac OS X unless expressly created by the user. Hence the return value "contentType" of

        Path path;
        String contentType = Files.probeContentType(path);

        will be null.

              bpb Brian Burkhalter
              bpb Brian Burkhalter
              Votes:
              1 Vote for this issue
              Watchers:
              4 Start watching this issue

                Created:
                Updated:
                Resolved: