dirMode not working?

Gradle Version: 3.1
Operating System and JVM version:
linux RedHat (Linux 2.6.32-573.12.1.el6.x86_64 amd64 )
Java 1.7.0_95
Is this a regression? If yes, which version of Gradle do you know it last worked for?

Why isn’t my “cfg” folder 0775 after setting dirMode to 0775?

$> ls -l $optPath
drwxr-xr-x 2 ltuser ktgrp 4096 Oct 18 20:46 cfg

$ ls -l $optPath/cfg/
total 8
-rw-rw-r-- 1 ltuser ktgrp 154 Oct 18 20:46 pltSetEnv.phaseLookup.cfg
-rw-rw-r-- 1 ltuser ktgrp 164 Oct 18 20:46 pltSetProfile-jdbc.properties

task pltInstall(type:Copy) {
  group "Pilot"
  description "Copies all project artifacts to '${optPath}' "

  destinationDir = file( "${optPath}" )
 
  fileMode 0775
  dirMode 0775
  into( 'cfg' ) {
    fileMode 0775
    dirMode 0775
      from ("$projectDir/cfg") {
         dirMode 0775
         fileMode 0664
      }
  }
}