static public boolean hasDriveLetter ( String path ) { boolean hasdr = false ; if ( path != null && path . length ( ) >= 2 ) { hasdr = ( DRIVELETTERS . indexOf ( path . charAt ( 0 ) ) >= 0 && path . charAt ( 1 ) == ' ' ) ; } return hasdr ; }
return true if this path appears to start with a windows drive letter