public EncryptionZone getEncryptionZoneForPath(Path path) throws IOException {
      if (path.getFileSystem(conf).exists(path)) {
        return hdfsAdmin.getEncryptionZoneForPath(path);
      } else if (!path.getParent().equals(path)) {
        return getEncryptionZoneForPath(path.getParent());
      } else {
        return null;
       }
    }
Returns true if the given fs supports mount functionality. In general we
can have child file systems only in the case of mount fs like
ViewFsOverloadScheme or ViewDistributedFileSystem. Returns false if the
getChildFileSystems API returns null.
shims/0.23/src/main/java/org/apache/hadoop/hive/shims/Hadoop23Shims.java