Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Use file service to match string in the file #76620

Closed
sandy081 opened this issue Jul 4, 2019 · 0 comments
Closed

Use file service to match string in the file #76620

sandy081 opened this issue Jul 4, 2019 · 0 comments
Assignees
Milestone

Comments

@sandy081
Copy link
Member

sandy081 commented Jul 4, 2019

Back up service uses following util to read and match the content in the file.

export function readToMatchingString(file: string, matchingString: string, chunkBytes: number, maximumBytesToRead: number): Promise<string | null> {

This uses the node fs.

Please use IFileService api which is capable of reading bytes and streams.

@bpasero bpasero added this to the July 2019 milestone Jul 5, 2019
@bpasero bpasero closed this as completed in a67d4ae Jul 5, 2019
@vscodebot vscodebot bot locked and limited conversation to collaborators Aug 19, 2019
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants