public static void setFilesPermission(List<File> files, Set<PosixFilePermission> permissions) throws IOException {
    for (File file : files) {
      Files.setPosixFilePermissions(file.toPath(), permissions);
    }
  }
Set permissions for given files.
@param files a list of files that set specified permissions
@param permissions a set of {@link PosixFilePermission} associated with given files
@throws IOException Any I/O error.
ambry-utils/src/main/java/com/github/ambry/utils/Utils.java