function onOpenFileRequested(options, onSuccess, onError) {
  if (options.fileSystemId !== test_util.FILE_SYSTEM_ID) {
    onError('INVALID_OPERATION');  // enum ProviderError.
    return;
  }

  if (options.mode !== 'READ') {
    onError('ACCESS_DENIED');  // enum ProviderError.
    return;
  }

  if (options.filePath !== '/' + TESTING_6GB_FILE.name) {
    onError('NOT_FOUND');  // enum ProviderError.
    return;
  }

  openedFiles[options.requestId] = options.filePath;
  onSuccess();
}
/**
 * Requests opening a file at <code>filePath</code>. Further file operations
 * will be associated with the <code>requestId</code>
 *
 * @param {OpenFileRequestedOptions} options Options.
 * @param {function()} onSuccess Success callback.
 * @param {function(string)} onError Error callback.
 */
Requests opening a file at filePath. Further file operations
will be associated with the requestId

@param {OpenFileRequestedOptions} options Options.
@param {function()} onSuccess Success callback.
@param {function(string)} onError Error callback.
Requests opening a file at filePath . Further file operations will be associated with the requestId @param { OpenFileRequestedOptions } options Options . @param { function () } onSuccess Success callback . @param { function ( string ) } onError Error callback .
function onOpenFileRequested(options, onSuccess, onError) {
  if (options.fileSystemId !== test_util.FILE_SYSTEM_ID) {
    onError('INVALID_OPERATION');  
    return;
  }
  if (options.mode !== 'READ') {
    onError('ACCESS_DENIED');  
    return;
  }
  if (options.filePath !== '/' + TESTING_6GB_FILE.name) {
    onError('NOT_FOUND');  
    return;
  }
  openedFiles[options.requestId] = options.filePath;
  onSuccess();
}
function onOpenFileRequested ( options , onSuccess , onError ) { if ( options . fileSystemId !== test_util . FILE_SYSTEM_ID ) { onError ( 'INVALID_OPERATION' ) ; return ; } if ( options . mode !== 'READ' ) { onError ( 'ACCESS_DENIED' ) ; return ; } if ( options . filePath !== '/' + TESTING_6GB_FILE . name ) { onError ( 'NOT_FOUND' ) ; return ; } openedFiles [ options . requestId ] = options . filePath ; onSuccess ( ) ; }
Requests opening a file at <code>filePath</code>.
Requests opening a file at <code > filePath< / code > .
// enum ProviderError. // enum ProviderError. // enum ProviderError.