{
CloudStoreAdapterBase store = getCloudStoreAdapter( );
CloudStorePath dirPath = new CloudStorePath( "/foo/bar/" );
store.createDirectory( store.getDirectory( "/foo/bar/" ) );
CloudStoreFile fileToUpload = store.getFile( "/foo/bar/some_file.txt" );
fileToUpload.setStreamToStore( new MockFileStream( 50 ) );
fileToUpload.write( null );
// HACK!! (AL) For some reason, Nirvanix needs time to process the file
// before it can be copied. I'm not sure why this is, and I can't
// find anything in the docs.
// TODO: Perhaps put in a retry for the copy command?