hadoop-common-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Hongyuan Li (JIRA)" <j...@apache.org>
Subject [jira] [Created] (HADOOP-14429) FTPFileSystem getFsAction method does not work
Date Wed, 17 May 2017 02:12:04 GMT
Hongyuan Li created HADOOP-14429:
------------------------------------

             Summary: FTPFileSystem getFsAction method does not work
                 Key: HADOOP-14429
                 URL: https://issues.apache.org/jira/browse/HADOOP-14429
             Project: Hadoop Common
          Issue Type: Bug
            Reporter: Hongyuan Li
            Assignee: Hongyuan Li
            Priority: Trivial


  private FsAction getFsAction(int accessGroup, FTPFile ftpFile) {
    FsAction action = FsAction.NONE;
    if (ftpFile.hasPermission(accessGroup, FTPFile.READ_PERMISSION)) {
      action.or(FsAction.READ);
    }
    if (ftpFile.hasPermission(accessGroup, FTPFile.WRITE_PERMISSION)) {
      action.or(FsAction.WRITE);
    }
    if (ftpFile.hasPermission(accessGroup, FTPFile.EXECUTE_PERMISSION)) {
      action.or(FsAction.EXECUTE);
    }
    return action;
  }

This method doesnot modify the action generated by FsAction action = FsAction.NONE;



--
This message was sent by Atlassian JIRA
(v6.3.15#6346)

---------------------------------------------------------------------
To unsubscribe, e-mail: common-issues-unsubscribe@hadoop.apache.org
For additional commands, e-mail: common-issues-help@hadoop.apache.org


Mime
View raw message