* Turn the file indexing event to generator to report progress * Fix React text's trimming function * Refactor delete file into a method