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

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

  onSuccess([TESTING_TIRAMISU_FILE], true /* hasMore */);
  onSuccess([TESTING_CANDIES_DIR], false /* hasMore */);
}
/**
 * Returns entries in the requested directory.
 *
 * @param {ReadDirectoryRequestedOptions} options Options.
 * @param {function(Array<Object>, boolean)} onSuccess Success callback with
 *     a list of entries. May be called multiple times.
 * @param {function(string)} onError Error callback with an error code.
 */
Returns entries in the requested directory.
@param {ReadDirectoryRequestedOptions} options Options.
@param {function(Array, boolean)} onSuccess Success callback with
a list of entries. May be called multiple times.
@param {function(string)} onError Error callback with an error code.
Returns entries in the requested directory . @param { ReadDirectoryRequestedOptions } options Options . @param { function ( Array boolean ) } onSuccess Success callback with a list of entries . May be called multiple times . @param { function ( string ) } onError Error callback with an error code .
function onReadDirectoryRequested(options, onSuccess, onError) {
  if (options.fileSystemId !== test_util.FILE_SYSTEM_ID) {
    onError('SECURITY');  
    return;
  }
  if (options.directoryPath !== '/' + TESTING_HELLO_DIR.name) {
    onError('NOT_FOUND');  
    return;
  }
  onSuccess([TESTING_TIRAMISU_FILE], true );
  onSuccess([TESTING_CANDIES_DIR], false );
}
function onReadDirectoryRequested ( options , onSuccess , onError ) { if ( options . fileSystemId !== test_util . FILE_SYSTEM_ID ) { onError ( 'SECURITY' ) ; return ; } if ( options . directoryPath !== '/' + TESTING_HELLO_DIR . name ) { onError ( 'NOT_FOUND' ) ; return ; } onSuccess ( [ TESTING_TIRAMISU_FILE ] , true ) ; onSuccess ( [ TESTING_CANDIES_DIR ] , false ) ; }
Returns entries in the requested directory.
Returns entries in the requested directory .
// enum ProviderError. // enum ProviderError. /* hasMore */ /* hasMore */