@ Override public String getNativePath ( ) { if ( ! isWindows ( ) ) { return getFullPath ( ) ; } String path = getFullPath ( ) ; int length = path . length ( ) ; CharBuffer cb = new CharBuffer ( ) ; char ch ; int offset = 0 ; // For windows, convert /c: to c: if ( length >= 3 && path . charAt ( 0 ) == ' ' && path . charAt ( 2 ) == ' ' && ( ' ' <= ( ch = path . charAt ( 1 ) ) && ch <= ' ' || ' ' <= ch && ch <= ' ' ) ) { offset = 1 ; } else if ( length >= 3 && path . charAt ( 0 ) == ' ' && path . charAt ( 1 ) == ' ' && path . charAt ( 2 ) == ' ' ) { cb . append ( ' ' ) ; cb . append ( ' ' ) ; offset = 3 ; } for ( ; offset < length ; offset ++ ) { ch = path . charAt ( offset ) ; if ( ch == ' ' ) cb . append ( _separatorChar ) ; else cb . append ( ch ) ; } return cb . toString ( ) ; }
Returns the native path .