public static String filenameOnly( String sFullPath ) {
    if ( Utils.isEmpty( sFullPath ) ) {
      return sFullPath;
    }

    int idx = sFullPath.lastIndexOf( FILE_SEPARATOR );
    if ( idx != -1 ) {
      return sFullPath.substring( idx + 1 );
    } else {
      idx = sFullPath.lastIndexOf( '/' ); // URL, VFS/**/
      if ( idx != -1 ) {
        return sFullPath.substring( idx + 1 );
      } else {
        return sFullPath;
      }
    }
  }
@Test
  public void testFilenameOnly() {
    assertNull( Const.filenameOnly( null ) );
    assertTrue( Const.filenameOnly( "" ).isEmpty() );
    assertEquals( "file.txt", Const.filenameOnly( "dir" + Const.FILE_SEPARATOR + "file.txt" ) );
    assertEquals( "file.txt", Const.filenameOnly( "file.txt" ) );
  }