Can I monitor the current size of a file while copying in Java? | SoloLearn: Learn to code for FREE!

0

Can I monitor the current size of a file while copying in Java?

Am using Apache's API to copy large files. Is there a way I can monitor the progress of currently copied file i.e. the current size using a separate thread keeping in mind that most file operations are sychronized? The only solutions I got so far uses filestreams. Need help.

1/13/2020 4:01:04 PM

Last born

3 Answers

New Answer

+2

https://www.journaldev.com/839/java-get-file-size

+1

Avinesh thanks. But that's not I want. The size while copying not before or after

+1

Avinesh thanks. But that's not I want. The size while copying not before or after