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

Adding file sourcePath and destinationPath to the progress #106

Open
jrebmann opened this issue Nov 3, 2022 · 1 comment
Open

Adding file sourcePath and destinationPath to the progress #106

jrebmann opened this issue Nov 3, 2022 · 1 comment

Comments

@jrebmann
Copy link

jrebmann commented Nov 3, 2022

It would be great if the progress object would provide the information about the sourcePath and destinationPath.

One of my use cases requires copying folders with many files.
The information about which file is being copied would be very useful.

I took a quick look at the code and the internal library cp-file already provides the desired information.

Is there any reason not to add this information to the ProgressData object?

{
  sourcePath: string,         <--
  destinationPath: string,    <--
  completedFiles: number,
  totalFiles: number,
  completedSize: number,
  percent: number,
}
@sindresorhus
Copy link
Owner

Makes sense to me 👍

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants