private FsPermission permission(IgfsFile file){
  String perm=file.property(IgfsUtils.PROP_PERMISSION,null);
  if (perm == null)   return FsPermission.getDefault();
  try {
    return new FsPermission((short)Integer.parseInt(perm,8));
  }
 catch (  NumberFormatException ignore) {
    return FsPermission.getDefault();
  }
}

private FsPermission permission ( IgfsFile file ) { String perm = file . property ( IgfsUtils . PROP_PERMISSION , null ) ; if ( perm == null ) return FsPermission . getDefault ( ) ; try { return new FsPermission ( ( short ) Integer . parseInt ( perm , 8 ) ) ; } catch ( NumberFormatException ignore ) { return FsPermission . getDefault ( ) ; } }
convert igfs file attributes into hadoop permission .
