Thread.sleep( 1000 );
}
catch ( Throwable e )
{
}
fileToUpload.copyTo( store
.getFile( dirPath.getParent( )
.combine(
PathUtil.popLeaf( fileToUpload.getPath( ) ) )
.getAbsolutePath( ) ), null );
assertTrue( store.contains( store.getFile( "/foo/some_file.txt" ) ) );