public static void addPermissionRecursive(Path path,PosixFilePermission permission) throws IOException {
  changePermissionsRecursive(path,PermissionChange.ADD,Collections.singleton(permission));
}

public static void addPermissionRecursive ( Path path , PosixFilePermission permission ) throws IOException { changePermissionsRecursive ( path , PermissionChange . ADD , Collections . singleton ( permission ) ) ; }
recursively adds a permission to a directory .
