S3Path { public boolean isDirectory() { return mKey == null || mKey.endsWith(mDelim); } S3Path(String	path);  S3Path( String bucket , String key );  S3Path( S3Path parent , String child ); String getBucket(); String getPrefix(); boolean hasBucket(); boolean hasKey(); String getKey(); @Override String toString(); boolean isDirectory(); void appendPath( String path ); void setBucket(String bucket); void setKey(String key); static boolean isDirectory(String key, String delim ); static boolean isDirectory(String key); static final String kDEF_DELIM; }
@Test public void testIsDirectory() throws Exception { S3Path s3Path = new S3Path("bucket","key"); assertFalse( s3Path.isDirectory()); }