question: private static boolean isDirectory ( URL url ) { String file = url . getFile ( ) ; return ( file . length ( ) > 0 && file . charAt ( file . length ( ) - 1 ) == '/' ) ; }
target:  Determines if the URL is pointing to a directory.