code: static ZTFilePermissions fromPosixFileMode(int mode) {
      ZTFilePermissions permissions = new ZTFilePermissions();
      
      permissions.setOwnerCanExecute( (mode &  OWNER_EXECUTE_FLAG)  > 0 );
      permissions.setGroupCanExecute( (mode &  GROUP_EXECUTE_FLAG)  > 0 );
      permissions.setOthersCanExecute((mode &  OTHERS_EXECUTE_FLAG) > 0 );
      
      permissions.setOwnerCanWrite( (mode &  OWNER_WRITE_FLAG)  > 0 );
      permissions.setGroupCanWrite( (mode &  GROUP_WRITE_FLAG)  > 0 );
      permissions.setOthersCanWrite((mode &  OTHERS_WRITE_FLAG) > 0 );
      
      permissions.setOwnerCanRead( (mode &  OWNER_READ_FLAG)  > 0 );
      permissions.setGroupCanRead( (mode &  GROUP_READ_FLAG)  > 0 );
      permissions.setOthersCanRead((mode &  OTHERS_READ_FLAG) > 0 );
      
      return permissions;
    }
docs: Convert Posix mode to {@link ZTFilePermissions}
  
  @param mode
  @return