agave-systems/systems-core/src/main/java/org/iplantc/service/transfer/RemoteFileInfo.java
/**
	 * Updates the integer permission mode of this fileitem.
	 * @param modeString unix mode such as "-rwx-r--r--"
	 * @return
	 * @throws RemoteDataException if a bad value is passed
	 */
Updates the integer permission mode of this fileitem.
Updates the integer permission mode of this fileitem .
public void updateMode(String modeString) throws RemoteDataException{
    	try {
			for(int i=1;i<=9;i++) {
				if (modeString.charAt(i) != '-') {
					mode += 1 << (9 - i);
				}
			}
		} catch (IndexOutOfBoundsException e) {
			throw new RemoteDataException("Could not parse access permission bits");
		}
	}
public void updateMode ( String modeString ) throws RemoteDataException { try { for ( int i = 1 ; i <= 9 ; i ++ ) { if ( modeString . charAt ( i ) != '-' ) { mode += 1 << ( 9 - i ) ; } } } catch ( IndexOutOfBoundsException e ) { throw new RemoteDataException ( "Could not parse access permission bits" ) ; } }
Updates the integer permission mode of this fileitem.
Updates the integer permission mode of this fileitem .