src/main/java/com/upplication/s3fs/util/S3Utils.java
public Set<PosixFilePermission> toPosixFilePermissions(List<Grant> grants) {
        Set<PosixFilePermission> filePermissions = new HashSet<>();
        for (Grant grant : grants) {
            filePermissions.addAll(toPosixFilePermission(grant.getPermission()));
        }

        return filePermissions;
    }
/**
     * transform com.amazonaws.services.s3.model.Grant to java.nio.file.attribute.PosixFilePermission
     *
     * @param grants Set grants mandatory, must be not null
     * @return Set PosixFilePermission never null
     * @see #toPosixFilePermission(Permission)
     */
transform com.amazonaws.services.s3.model.Grant to java.nio.file.attribute.PosixFilePermission
@param grants Set grants mandatory, must be not null
@return Set PosixFilePermission never null
@see #toPosixFilePermission(Permission)
transform com . amazonaws . services . s3 . model . Grant to java . nio . file . attribute . PosixFilePermission @param grants Set grants mandatory must be not null @return Set PosixFilePermission never null @see #toPosixFilePermission ( Permission )
public Set<PosixFilePermission> toPosixFilePermissions(List<Grant> grants) {
        Set<PosixFilePermission> filePermissions = new HashSet<>();
        for (Grant grant : grants) {
            filePermissions.addAll(toPosixFilePermission(grant.getPermission()));
        }
        return filePermissions;
    }
public Set < PosixFilePermission > toPosixFilePermissions ( List < Grant > grants ) { Set < PosixFilePermission > filePermissions = new HashSet < > ( ) ; for ( Grant grant : grants ) { filePermissions . addAll ( toPosixFilePermission ( grant . getPermission ( ) ) ) ; } return filePermissions ; }
transform com.amazonaws.services.s3.model.Grant to java.nio.file.attribute.PosixFilePermission
 @param grants Set grants mandatory, must be not null
 @return Set PosixFilePermission never null
 @see #toPosixFilePermission(Permission)
transform com . amazonaws . services . s3 . model . Grant to java . nio . file . attribute . PosixFilePermission @param grants Set grants mandatory must be not null @return Set PosixFilePermission never null @see #toPosixFilePermission ( Permission )